This function generate complete datasets.
1 | generateComplete(outcomeType, numSamp, beta0, beta1, beta2, xmean, xsd, errorsd)
|
outcomeType |
Is the outcome variable binary or continuous? |
numSamp |
Number of observations in the sample |
beta0 |
Intercept |
beta1 |
Treatment effect |
beta2 |
Slope of auxiliary variable |
xmean |
Mean of auxiliary variable |
xsd |
Standard deviation of auxiliary variable |
errorsd |
Parameter to add noise. Standard deviation of errors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.