lpDataSim: Simulate ERR data from a correlated lognormal distribution

View source: R/lpDataSim.R

lpDataSimR Documentation

Simulate ERR data from a correlated lognormal distribution

Description

Simulate ERR data from a correlated lognormal distribution

Usage

lpDataSim(N, mu_pre, mu_post, cv_pre, cv_post, correlation, parameters = NULL)

Arguments

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

Value

A data frame containing the simulated data

Examples

lpDataSim(10, 10, 1, 1, 1, 0.4)


ku-awdc/eggSim documentation built on Feb. 23, 2024, 10:22 p.m.