Skip to content

Instantly share code, notes, and snippets.

@vasishth
Last active December 15, 2015 00:28
Show Gist options
  • Save vasishth/5172668 to your computer and use it in GitHub Desktop.
Save vasishth/5172668 to your computer and use it in GitHub Desktop.
linear model correlations of fixed effects
> summary(lm<-lm(wear~material-1,BHHshoes))
> X<-model.matrix(lm)
> 2.49^2*solve(t(X)%*%X)
materialA materialB
materialA 0.62001 0.00000
materialB 0.00000 0.62001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment