[R] Missing Data in Stepwise selection of Logistic regression

2012-02-23 Thread Kawthar Alajmi
Hi all, I am running Stepwise logistic regression and i have : 1- Multiple covatiates included in each model (No missing data) 2- Genotype data (SNPs) about 500,000 . I partitioned the data to multiple files (there are missing data) I run the step by including all the covariates and one SNP at e

[R] creating a loop for multiple file

2012-02-22 Thread Kawthar Alajmi
Hi all, need help very urgently I did stepwise logistic regression for 35 covariates and added one SNP out of (50) to get the best model for each model As my professor asked me using this command, outfiles <- paste(colnames(snps), ".txt", sep="") # list of output files for the best models f