GenSimData | R Documentation |
Generate simulated data
GenSimData(
k,
ni = 100,
xdim = 5,
xpdf = "norm",
sd = sqrt(0.01),
tau_fn = "X1*(X1>0) -4*(k%%2==0)+X1*(k%%2==0)",
m_fn = "0"
)
k |
Site index. |
ni |
Sample size within a site. |
xdim |
Dimension of covariate 'X'. |
xpdf |
Distribution of covariate 'X'. |
sd |
Standard deviation of error term in simulating outcome. |
tau_fn |
Treatment effect function. |
m_fn |
Mean effect function. |
A simulated data set.
GenSimData(k=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.