Use the function predict()
predict(results, newdata= data.frame(Area=20), se.fit=TRUE, interval = "confidence")
You can just add variables to the linear model. For example:
results <- lm(data=data, log(Tonn.Hect)~log(Area) + Age + factor(HarvestMoon))
No comments:
Post a Comment