lpDataSim | R Documentation |
Simulate ERR data from a correlated lognormal distribution
lpDataSim(N, mu_pre, mu_post, cv_pre, cv_post, correlation, parameters = NULL)
N |
The number of (paired) observations to simulate |
mu_pre |
The pre-treatment arithmetic mean eggs per gram |
mu_post |
The post-treatment arithmetic mean eggs per gram |
cv_pre |
The extra-Poisson coefficient of variation (ratio of standard deviation to mean) in the pre-treatment data |
cv_post |
The extra-Poisson coefficient of variation (ratio of standard deviation to mean) in the post-treatment data |
correlation |
The extra-Poisson correlation between pre- and post-treatment log-lambda parameters |
parameters |
Alternative way to specify the parameters as output of the ERRparameters function |
A data frame containing the simulated data
lpDataSim(10, 10, 1, 1, 1, 0.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.