Sample NLME random effects given population parameter values describing the inter-individual variability distribution
sampleRandomEffects.Rd
Sample NLME random effects given population parameter values describing the inter-individual variability distribution
sampleRandomEffects(
spec,
iivPopParamValues,
Nsamples = if (is_IQRnlmeParamSpec(spec)) spec$Nsamples else 1
)
Arguments
- spec
a filename (character string) denoting the path to a GPF excel file, or a GPF object, or an IQRnlmeParamSpec object.
- iivPopParamValues
a data.frame with population parameter values describing the IIV distribution. The number of rows in this data.frame defines the number of populations for which random effects are to be sampled.
- Nsamples
integer denoting the number of individuals in a population. Note: in the case of
FLAG_SAMPLE=2
, this value is used to specify the number of populations (seeNpop
). Default:if(is_IQRnlmeParamSpec(obj)) obj$Nsamples else 1L
.
Value
a data.frame of Nsamples*nrow(iivPopParamValues)
rows and
columns ID.POP
, ID
and a column for each model parameter
defined in spec
.
See also
Random sampling of NLME model parameters
Other Parameter sampling:
calcIndParamValues()
,
calcTypicalIndParamValues()
,
combineGPF()
,
generate_GPFFromIQRnlmeEst()
,
generate_GPFFromIQRnlmeProject()
,
generate_GPFFromProjectInfo()
,
generate_GPFFromProjectInfoList()
,
getCorMatrixUncertainty()
,
getCovMatrixIIV()
,
getCovMatrixUncertainty()
,
getNamesAllParameters()
,
getNamesCovariateParameters()
,
getNamesCovariates()
,
getNamesErrorParameters()
,
getNamesIIVCorrParameters()
,
getNamesIIVParameters()
,
getNamesModelParameters()
,
getParamEstimates()
,
getParamTransformationTypes()
,
imputeTYPEcol_GPF()
,
is_GPF()
,
is_IQRnlmeParamSpec()
,
read_GPFFromCSV()
,
read_GPFFromXLS()
,
sampleIDs()
,
sampleIndParamValues()
,
sampleParamFromUncertainty()
,
sample_GPF()
,
select_FromGPF()
,
specifyParamSampling()
,
transformParamToNormal()
,
untransformParamFromNormal()
Examples
if (FALSE) { # \dontrun{
#See the examples for sampleIndParamValues:
?sampleIndParamValues
} # }