data(pheno)
data(geno)
data(pedigree)
foo <- gls.batch.get(
phenfile=pheno,
genfile=data.frame(t(geno)),
pedifile=pedigree,
outfile="example_output.txt",
covmtxfile.in=NULL,covmtxfile.out=paste(phen,"_cov_matrix.txt",sep=""),
phen="Zscore", covars = "IsFemale",
med = "rfgls", sizeLab = "OOPP", Mz = TRUE, Bo = TRUE, Ad = TRUE, Mix = TRUE,
indobs = TRUE, col.names = TRUE, pediheader = FALSE,
pedicolname=c("FAMID","ID","PID","MID","SEX"),
sep.phe = "", sep.gen = "", sep.ped = "")
olsmod <- lm( ##<--OLS regression could be applied to the merged dataset...
Zscore ~ snp.1 + IsFemale, data=foo$test.dat)
summary(olsmod) #<--...but the standard errors and t-statistics will not be valid.
Run the code above in your browser using DataLab