Created
June 15, 2021 18:15
-
-
Save rmcelreath/eb33502866426237afa30adf1e9612c1 to your computer and use it in GitHub Desktop.
Code examples for RFDT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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