Skip to content

Instantly share code, notes, and snippets.

@rmcelreath
Created June 15, 2021 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcelreath/eb33502866426237afa30adf1e9612c1 to your computer and use it in GitHub Desktop.
Save rmcelreath/eb33502866426237afa30adf1e9612c1 to your computer and use it in GitHub Desktop.
Code examples for RFDT
# fit the two regression models
summary( lm( D ~ M ) )
summary( lm( D ~ M + B1 + B2 ) )
# compare the models with AIC
AIC( lm( D ~ M ) )
AIC( lm( D ~ M + B1 + B2 ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment