It was easier than I thought. To your example, just add one line:
alias(f)
Model :
y ~ z1 + z2 + z3
Complete :
(Intercept) z1B z1C z3
z2Bb 1
z2Cc 1
spencer graves
Young Cho wrote:
Hi,
I was wondering if there is a way, or function
Hi,
I was wondering if there is a way, or function in R to
find confounders. For istance,
a = sample( c(1:3), size=10,replace=T)
X1 = factor( c('A','B','C')[a] )
X2 = factor( c('Aa','Bb','Cc')[a] )
Xmat = data.frame(X1,X2,rnorm(10),rnorm(10))
dimnames(Xmat)[[2]] = c('z1','z2','z3','y')