View source: R/ME_data_generate.R
ME_data_generate | R Documentation |
Generate the discrete random variable with measurement error.
ME_data_generate(p, n, m, pi1, pi2 = pi1)
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. |
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.
ME_data_generate(0.7,50,50,0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.