vpc_nlmixr_nlme | R Documentation |
Do visual predictive check (VPC) plots for nlme-based non-linear mixed effect models
vpc_nlmixr_nlme(fit, nsim = 100, condition = NULL, ...) vpcNlmixrNlme(fit, nsim = 100, condition = NULL, ...) ## S3 method for class 'nlmixrNlme' vpc(sim, ...)
fit |
nlme fit object |
nsim |
number of simulations |
condition |
conditional variable |
... |
Additional arguments |
sim |
this is usually a data.frame with observed data, containing the independent and dependent variable, a column indicating the individual, and possibly covariates. E.g. load in from NONMEM using read_table_nm. However it can also be an object like a nlmixr or xpose object |
Called for its side effects of creating a VPC
specs <- list(fixed=lKA+lCL+lV~1, random = pdDiag(lKA+lCL~1), start=c(lKA=0.5, lCL=-3.2, lV=-1)) fit <- nlme_lin_cmpt(theo_md, par_model=specs, ncmt=1, verbose=TRUE) vpc_nlmixr_nlme(fit, nsim = 100, condition = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.