Learn R Programming

EATME (version 0.1.0)

ME_data_generate: 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

Run this code
# NOT RUN {
ME_data_generate(0.7,50,50,0.95)
# }

Run the code above in your browser using DataLab