用R建立一个回归模型来看一看明年教育学学硕的国家线
well, my major is under the category of education
建立数据框
gjx <- data.frame(
year = c(2017,2018,2019,2020,2021,2022),
grade = c(310,320,325,331,337,351)
)
gjx
拟合模型
fit1 <- lm(grade~year,data = gjx)
anova(fit1)
summary(fit1)
F=133.55, p=0.0003203, adjusted R-square=0.97
it seems our model works just fine
confint(fit1)
*the table below seems to be the 95% interval of the coefficient *