Description Usage Arguments Details Value Author(s) See Also Examples
Simulates a dataframe representing data from a method comparison
study. It is returned as a Meth
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Ni |
The number of items (patient, animal, sample, unit etc.) |
Nm |
The number of methods of measurement. |
Nr |
The (maximal) number of replicate measurements for each (item,method) pair. |
nr |
The minimal number of replicate measurements for each
(item,method) pair. If |
alpha |
A vector of method-specific intercepts for the linear equation relating the "true" underlying item mean measurement to the mean measurement on each method. |
beta |
A vector of method-specific slopes for the linear equation relating the "true" underlying item mean measurement to the mean measurement on each method. |
mu.range |
The range across items of the "true" mean measurement.
Item means are uniformly spaced across the range.
If a vector length |
sigma.mi |
A vector of method-specific standard deviations for a method by item random effect. Some or all components can be zero. |
sigma.ir |
Method-specific standard deviations for the item by replicate random effect. |
sigma.mir |
A vector of method-specific residual standard deviations for a method by item by replicate random effect (residual variation). All components must be greater than zero. |
m.thin |
Fraction of the observations from each method to keep. |
i.thin |
Fraction of the observations from each item to keep. If both
|
Data are simulated according to the following model for an observation y_mir:
y_mir = alpha_m + beta_m*(mu_i+b_ir+c_mi) + e_mir
where b_ir is a random item
by repl
interaction
(with standard deviation for method m the corresponding component of the
vector sigma_ir), c_mi is a random meth
by item
interaction (with standard deviation for method m the
corresponding component of the vector sigma_mi) and
e_mir is a residual error term (with standard deviation
for method m the corresponding component of the vector
sigma_mir). The mu_i's are uniformly spaced
in a range specified by mu.range
.
A Meth
object, i.e. dataframe
with columns meth
, item
, repl
and y
,
representing results from a method comparison study.
Lyle Gurrin, University of Melbourne, http://www.epi.unimelb.edu.au/about/staff/gurrin-lyle
Bendix Carstensen, Steno Diabetes Center, http://BendixCarstensen.com
summary.Meth
,
plot.Meth
,
MCmcmc
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.