Meth
object.
Meth.sim( Ni = 100, Nm = 2, Nr = 3, nr = Nr, alpha = rep(0,Nm), beta = rep(1,Nm), mu.range = c(0, 100), sigma.mi = rep(5,Nm), sigma.ir = 2.5, sigma.mir = rep(5,Nm), m.thin = 1, i.thin = 1 )
nr, the number of replicates for
each (meth,item) pair is uniformly distributed on the points
nr:Nr
, otherwise nr
is ignored. Different number of
replicates is only meaningful if replicates are not linked, hence
nr
is also ignored when sigma.ir>0
.
Ni
is given, the values of that
vector will be used as "true" means.m.thin
and i.thin
are given the thinning is by their
componentwise product.Meth
object, i.e. dataframe
with columns meth
, item
, repl
and y
,
representing results from a method comparison study.
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
.
summary.Meth
,
plot.Meth
,
MCmcmc
Meth.sim( Ni=4, Nr=3 )
xx <- Meth.sim( Nm=3, Nr=5, nr=2, alpha=1:3, beta=c(0.7,0.9,1.2), m.thin=0.7 )
summary( xx )
plot( xx )
Run the code above in your browser using DataLab