extract | R Documentation |
Extracts a build from a cvRemix object.
extract(fit, n)
fit |
output of |
n |
rank (in the 'fit$lambda') to extract. |
outputs from remix
algorithm of rank 'n' computed by cv.remix
.
cv.remix
, remix
.
## Not run:
project <- getMLXdir()
ObsModel.transfo = list(S=list(AB=log10),
linkS="yAB",
R=rep(list(S=function(x){x}),5),
linkR = paste0("yG",1:5))
alpha=list(alpha0=NULL,
alpha1=setNames(paste0("alpha_1",1:5),paste0("yG",1:5)))
y = c(S=5,AB=1000)
cv.outputs = cv.Remix(project = project,
dynFUN = dynFUN_demo,
y = y,
ObsModel.transfo = ObsModel.transfo,
alpha = alpha,
selfInit = TRUE,
eps1=10**(-2),
ncores=8,
eps2=1)
res <- extract(cv.outputs,6)
plotConvergence(res)
trueValue = read.csv(paste0(dirname(project),"/demoSMLX/Simulation/populationParameters.txt"))
plotSAEM(res,paramToPlot = c("delta_S_pop","phi_S_pop","delta_AB_pop"),trueValue=trueValue)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.