data(miscEx)
gdat.imp<- genoImpute(gdat, gmap=genMap, step=Inf,
gr=2, na.str=NA)
y<- rnorm(20)
x<- sample(c("M","F"),20,replace=TRUE)
v<- cov(matrix(rnorm(500*20),ncol=20))
o<- estVC(y, x, v = list(AA=v,DD=NULL,HH=NULL,AD=NULL,
MH=NULL,EE=diag(20)))
gdtmp<- (gdat=="AA") + (gdat=="AB")*2 + (gdat=="BB")*3
gdtmp<- replace(gdtmp,is.na(gdtmp),0)
prDat<- genoProb(gdat=gdtmp, gmap=genMap, step=Inf,
gr=2, method="Haldane", verbose=TRUE)
# not run
llk.hk<- scanOne(y=y, x=x, prdat=prDat, vc=o)
xin<- llk.hk$lr > 1.5
mg<- mAIC(y=y, x=x, prdat=prDat, vc=o, xin=xin,
k=1.5,direction="back", nit=50, verbose=TRUE)
mg$model$value # likelihood of the final model
Run the code above in your browser using DataLab