data(miscEx)
# impute missing genotypes
gdtmp<- gdatF8
gdtmp<- replace(gdtmp,is.na(gdtmp),0)
# rung 'genoProb'
prDat<- genoProb(gdat=gdtmp, gmap=gmapF8, step=Inf,
gr=8, method="Haldane", verbose=TRUE)
# estimate variance components
o<- estVC(y=pdatF8$bwt, x=pdatF8$sex, v=list(AA=gmF8$AA,DD=gmF8$DD,
HH=NULL, AD=NULL, MH=NULL, EE=diag(length(pdatF8$bwt))))
# genome scan
pv.hk<- scanOne(y=pdatF8$bwt, x=pdatF8$sex, prdat=prDat, vc=o)
# run 'qtlVar'
qef<- NULL
for(n in 1:length(llk.hk$par))
qef<- rbind(qef,llk.hk$par[[n]][c("a","d")])
qef<- as.data.frame(qef)
qtlVar(qef,prDat$pr)[1:3]Run the code above in your browser using DataLab