Simulate Parameters from a Theta/Omega specification
rxSimThetaOmega(params = NULL, omega = NULL, omegaDf = NULL,
omegaIsChol = FALSE, nSub = 1L, thetaMat = NULL, thetaDf = NULL,
thetaIsChol = FALSE, nStud = 1L, sigma = NULL, sigmaDf = NULL,
sigmaIsChol = FALSE, nCoresRV = 1L, nObs = 1L, dfSub = 0, dfObs = 0,
simSubjects = TRUE)
Named Vector of RxODE model parameters
Named omega matrix.
The degrees of freedom of a t-distribution for
simulation. By default this is NULL
which is
equivalent to Inf
degrees, or to simulate from a normal
distribution instead of a t-distribution.
Indicates if the omega
supplied is a
Cholesky decomposed matrix instead of the traditional
symmetric matrix.
Number between subject variabilities (ETAs) simulated for every realization of the parameters.
Named theta matrix.
The degrees of freedom of a t-distribution for
simulation. By default this is NULL
which is
equivalent to Inf
degrees, or to simulate from a normal
distribution instead of a t-distribution.
Indicates if the theta
supplied is a
Cholesky decomposed matrix instead of the traditional
symmetric matrix.
Number virtual studies to characterize uncertainty in estimated parameters.
Matrix for residual variation. Adds a "NA" value for each of the indivdual parameters, residuals are updated after solve is completed.
Degrees of freedom of the sigma t-distribution. By
default it is equivalent to Inf
, or a normal distribution.
Boolean indicating if the sigma is in the Cholesky decomposition instead of a symmetric covariance
Number of cores used for the simulation of the
sigma variables. By default this is 1. This uses the package
rmvn
and rmvt
.
To reproduce the results you need to run on the same platform
with the same number of cores. This is the reason this is set
to be one, regardless of what the number of cores are used in
threaded ODE solving.
Number of observations to simulate (with sigma
matrix)
Degrees of freedom to sample the between subject variaiblity matrix from the inverse Wishart distribution (scaled) or scaled inverse chi squared distribution.
Degrees of freedom to sample the unexplained variaiblity matrix from the inverse Wishart distribution (scaled) or scaled inverse chi squared distribution.
boolean indicated RxODE should simulate subjects in studies (TRUE
,
default) or studies (FALSE
)