search for: treat_rep1

Displaying 1 result from an estimated 1 matches for "treat_rep1".

Did you mean: treat_rep2
2011 Aug 23
3
GLM question
Hi All, I am trying to fit my data with glm model, my data is a matrix of size n*100. So, I have n rows and 100 columns and my vector y is of size n which contains the labels (0 or 1) My question is: instead of manually typing the model as glm.fit = glm(y~ x[,1]+x[,2]+...+x[,100], family=binomial()) I have a for loop as follows that concatenates the x variables as follows: final_str=NULL for