Description Usage Arguments Details Value Examples
Creates a simulated data set based upon the supplied arguments.
1 | XYZpowerSim(R = 1000, clusters = NA, obs = NA, sigLevel = .05 ...)
|
R |
Integer. Number of replications within each cell of simulation. |
clusters |
A vector of integers. Number of clusters to be crossed with |
obs |
A vector of integers. Number of observations for each level of to be crossed with |
sigLevel |
Numeric. $alpha$ value for determine significant p-values in each simulation. |
... |
Arguments passed to simMixedXYZ. |
By specifying effect sizes (db0
, ..., db7
) of betas as seen in Dawson and Richter (2006),
number of clusters, and number of observations within cluster, this function creates a data set with the
appropriate relationships. Variables X, Y, and Z are each drawn from N~(0,1).
A data frame of simulated parameters.
1 2 3 4 5 6 7 8 9 10 11 | library(mixedPowerSim)
nCluster <- c(5, 10, 15)
nObs <- c(5, 10, 15)
reliability <- .8
db0 <- .1
SDb0 <- 1
SDresid <- 5
XYZpowerSim(R = 3, clusters = nCluster, obs = nObs, sigLevel = .05, type = "slopeDifference",
b0 = db0, a_Dif = 0, b_Dif = 0,c_Dif = 0,
d_Dif = 0, e_Dif = 0, f_Dif = 0,
SDb0 = SDb0, SDresid = SDresid, XWithin = TRUE, ZWithin = FALSE, WWithin = TRUE, reliability = reliability)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.