Hello, I think my question is quite simple, but come on:
How do I make this look like this:
coef.matrix=matrix(0,4,16)
for (k in c(1,4)){
for(i in 1:2){
coef.matrix[i,1]=summary(lm(y ~ x))$coef[2,k]
}
}
Instead of "from 1 to 4"...
asked by
05.04.2017 / 17:15