powered by
Generate the discrete random variable with measurement error.
ME_data_generate(p, n, m, pi1, pi2 = pi1)
A probability of the unobserved defectives.
A number of sample size in the data.
A number of observation in the data.
The proportion that the observed defectives are the same as unobserved ones.
The proportion that the observed non-defectives are the same as unobserved ones.
real_data\(\hspace{1.2cm}\) The generated data without measurement error.
real_data
obs_data\(\hspace{1.4cm}\) The generated data with measurement error.
obs_data
n\(\hspace{2.6cm}\) A sample size in the generated data.
n
# NOT RUN { ME_data_generate(0.7,50,50,0.95) # }
Run the code above in your browser using DataLab