QuickSimMultipleMediator | R Documentation |
SimpleSim
creates simulation parameters which are then used
to generate data with SimulateData
. Mostly used for testing.
QuickSimMultipleMediator(n, nmm, family, var_mm = 10, xx_direct = 0.5,
mm_direct = 0.5, xx_prob = 0.2)
n |
Sample Size |
nmm |
Number of mediators |
family |
Response type |
var_mm |
Variance of the mediators |
xx_direct |
Path coefficient form x to response |
mm_direct |
Path coefficient from mediators to response |
xx_prob |
Probability x is 1. |
List that the parameterizes simulation. Typically used as
argument in subsequent call to SimulateData
params <- QuickSimMultipleMediator(500,5,"cox")
names(params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.