The command fits the simple linear regressionusing ordinary least squares. The fitted conditional mean is a straight line in time. The regression residuals are mainly positive at the beginning and end and negative in the middle, so the mean function needs curvature.
A direct improvement is polynomial regression of degree two:The nested-model F-test tests against a nonzero quadratic coefficient. If measurements were used, its statistic isA small reported -value supports the quadratic term. The new regression residuals should then be checked for remaining systematic structure, changing variance and temporal dependence, because the F-test assumes independent errors of common variance. Radioactive decay also motivates an exponential mean, but the displayed curvature already justifies this simple nested comparison.
fit2 <- lm(Counts ~ Time + I(Time^2), data = geiger)
anova(fit1, fit2) Articles by others on the same topic
There are currently no matching articles.