ME_data_generate {EATME}R Documentation

Generate the discrete random variable with measurement error

Description

Generate the discrete random variable with measurement error.

Usage

ME_data_generate(p, n, m, pi1, pi2 = pi1)

Arguments

p

A probability of the unobserved defectives.

n

A number of sample size in the data.

m

A number of observation in the data.

pi1

The proportion that the observed defectives are the same as unobserved ones.

pi2

The proportion that the observed non-defectives are the same as unobserved ones.

Value

real_data\hspace{1.2cm} The generated data without measurement error.

obs_data\hspace{1.4cm} The generated data with measurement error.

n\hspace{2.6cm} A sample size in the generated data.

Examples

ME_data_generate(0.7,50,50,0.95)

[Package EATME version 0.1.0 Index]