binomRegMethModelPred {SOMNiBUS} | R Documentation |
This function returns the predicted methylation levels
binomRegMethModelPred(BEM.obj, newdata = NULL, type = "proportion")
BEM.obj |
an output from the function |
newdata |
the data set whose predictions are calculated; with columns 'Position', and covariate names that can be matched to the BEM.obj |
type |
return the predicted methylation proportion or the predicted response (in logit or other binom.link scale) |
This function returns the predicted methylation levels
Kaiqiong Zhao
#------------------------------------------------------------# head(RAdat) RAdat.f <- na.omit(RAdat[RAdat$Total_Counts != 0, ]) out <- binomRegMethModel( data=RAdat.f, n.k=rep(5, 3), p0=0.003307034, p1=0.9, epsilon=10^(-6), epsilon.lambda=10^(-3), maxStep=200, detail=FALSE, Quasi = FALSE, RanEff = FALSE ) binomRegMethModelPred(out)