Create an IQRnlmeParamSpec object

An IQRnlmeParamSpec represents a named list with elements describing the model parameter estimates, the uncertainty distribution, the inter-individual variability distribution the covariate information, and the residual error. Objects of this class are should not be created, read or manipulated "by hand"; their only meaningful purpose is to be passed an argument spec of sampleParam* functions.

specifyParamSampling(
  obj,
  Nsamples = if (is_IQRnlmeParamSpec(obj)) obj$Nsamples else 1L,
  Npop = if (is_IQRnlmeParamSpec(obj)) obj$Npop else if (FLAG_SAMPLE == 2) Nsamples else
    1L,
  FLAG_SAMPLE = 0,
  data = NULL
)

Arguments

obj

a filename (character string) denoting the path to a GPF file, or a GPF object, or an IQRnlmeParamSpec object. If an IQRnlmeParamSpec object, a copy of this object is returned with updated values of the arguments.

Nsamples

an integer specifying the number of sampled individuals (individual parameter sets) per one sampled set of population parameter values. Default: if(is_IQRnlmeParamSpec(obj)) obj$Nsamples else 1L.

Npop

an integer specifying the number of sampled sets of population parameter values. Default: if(is_IQRnlmeParamSpec(obj)) obj$Npop else if(FLAG_SAMPLE==2) Nsamples else 1L.

FLAG_SAMPLE

an integer flag used for setting default values for Npop and Nsamples. See sampleIndParamValues for possible values. Note that the value passed here will be overwritten by the default or user-specified value passed in sampleIndParamValues. Default: 0.

data

a data.frame with covariate data. Default: NULL.

Value

an object of S3 class IQRnlmeParamSpec.

Author

Venelin Mitov (IntiQuan)

Examples

if (FALSE) {
#See the examples for sampleIndParamValues:
?sampleIndParamValues
}#'