Skip to content

Instantly share code, notes, and snippets.

@stevehenderson
Created September 23, 2014 02:42
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 stevehenderson/28ce6e12989f7d802864 to your computer and use it in GitHub Desktop.
Save stevehenderson/28ce6e12989f7d802864 to your computer and use it in GitHub Desktop.
doe lm programatically build linear model
#This line creates a linear model with all variables and 2 way interaction
LinearModel.1 <- lm(result~(.)^2,data=Design.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment