Skip to content

Commit

Permalink
add AIC and BIC for first model
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Dec 28, 2024
1 parent 3962f21 commit 7e19862
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/main/R/badWeather/regressionAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,25 @@ summary(test)
confint(test)

############################################## first regression models for different time periods ####################################################################################################
first_model_general <- lm(noRides ~ tavg+trend,data = result_data)
first_model_general <- lm(noRides ~ wdir+tmax+tavg+tmin+snow+trend, data = result_data)
summary(first_model_general)
confint(first_model_general)

AIC_first_model_general <- AIC(first_model_general)
BIC_first_model_general <- BIC(first_model_general)

first_model_tavg <- lm(noRides ~ wdir+tavg+snow+trend, data = result_data)
summary(first_model_tavg)

first_model_tmax <- lm(noRides ~ wdir+tmax+snow+trend, data = result_data)
summary(first_model_tmax)

first_model_tmin <- lm(noRides ~ wdir+tmin+snow+trend, data = result_data)
summary(first_model_tmin)




first_model_ioki <- lm(noRides ~ tavg+trend,data = ioki_data)
summary(first_model_ioki)
confint(first_model_ioki)
Expand Down

0 comments on commit 7e19862

Please sign in to comment.