Function to simulate normally distributed data based on given treatment groups
1 2 |
mean.s |
Mean.s is the mean of the outcome varaible |
sigma |
Sigma is the variance |
trts |
Trts is the possible treatment assignments |
n.s |
N.s is the frequency of each treatment |
tau1 |
Tau1 is the weight assigned to the first covariate value |
tau2 |
Tau2 is the weight assigned to the second covariate value |
get_power |
Get_power determines whether or not the power is being calculated in this simulation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.