CreateParametersForSimulation {MIfuns}R Documentation

Generate model parameters for simulation

Description

Generate nsim sets of model parameters for simulation based on the results of a (final) model

Usage

CreateParametersForSimulation(nsim, ThetaMean, ThetaCovar,
OmegaModeList, OmegaDfList, SigmaModeList, SigmaDfList, digits = 4)

Arguments

nsim the number of simulations/sets of model parameters
ThetaMean vector containing the mean values of the fixed-effect parameters
ThetaCovar variance-covariance matrix of the fixed-effect distributions
OmegaModeList List with elements specifying the blocks of the block-diagonal variance-covariance matrix of the random effects. Each element of the list is the data frame that specifies the central values of the variance-covariance block.
OmegaDfList Vector that specifies degrees of freedoms for each block of the variance-covariance matrix of the random effects. Number of elements in OmegaModeList list and OmegaDfList vector should be equal.
SigmaModeList List with elements specifying the blocks of the block-diagonal variance-covariance matrix of the residual errors. Each element of the list is the data frame that specifiesthe central values of the variance-covariance block.
SigmaDfList Vector that specifies the degrees of freedoms for each block of the variance-covariance matrix of the residual errors. Number of elements in SigmaModeList and SigmaDfList vector should be equal.
digits number of significant digits in the output (the default value is 4)

Value

The output of the function is the data frame that contains the parameter data set.

Author(s)

Developed by Metrum Institute (Bill Knebel, Tim Bergsma, and others).

References

MIfuns package available from Metrum Institute website (http://metruminstitute.org/).


[Package MIfuns version 3.2.9 Index]