Title
Usage
runDySim(
seed = NULL,
popMod = NULL,
popModList = NULL,
sampSize = NULL,
sampMod = NULL,
nSims = NULL,
output = "paramTable"
)Arguments
- seed
numeric input for random seed to use
- popMod
character of dyadic model to use as population data generating mechanism. Currently supports "L-APIM".
- popModList
popModList with necessary parameter options for a given popMod
- sampSize
numeric input for sample size of each randomly drawn sample
- sampMod
character of dyadic model to use as analytic model within each randomly drawn sample, including "L-APIM", and "O-APIM"
- nSims
numeric input for number of randomly drawn samples to draw from popMod
- output
character of type of output to extract from each analyzed sampMod. Currently supports "paramTable" and "modelFit"
Examples
popModList.apim <- list(nItemsX = 5,
loadValuesX_A = "moderate", loadValuesX_B = "moderate",
residCorrValuesX = "moderate", iccX = "weak",
nItemsY = 5,
loadValuesY_A = "weak", loadValuesY_B = "mixed",
residCorrValuesY = "mixed", iccY = "strong",
actorA = "moderate", actorB = "very strong",
partnerA = "weak", partnerB = "weak")
apim.sim.out <- runDySim(seed = 123,
popMod = "L-APIM",
popModList = popModList.apim,
sampSize = 100,
sampMod = "L-APIM",
nSims = 10,
output = "paramTable")