Description Usage Arguments Details Slots of the resulting object Methods Author(s) References See Also Examples
LuckModelData
objects are an abstract data representation for inference
with generalized iLUCK models as implemented in LuckModel
.
Pure LuckModelData
objects (that are not simultaneously instances of a
subclass inheriting from LuckModelData
) are useful only for studying the
parameter update step and the shapes of posterior parameter sets of generalized
iLUCK models. For data-based inferences, classes inherting from
LuckModelData
must be used, see, e.g.,
ScaledNormalData
and ExponentialData
.
Objects can be created using the constructor function LuckModelData()
described below.
1 |
tau |
A numeric vector containing the sample statistic(s) τ(x), the length of which depends on the dimension of τ(x) for the sample distribution. |
n |
A numeric vector containing the sample size(s) belonging to the sample
statistic(s) τ(x) as supplied in |
arg1 |
Used for treatment of unnamed arguments only, see Details. |
arg2 |
Used for treatment of unnamed arguments only, see Details. |
To create a LuckModelData
object, LuckModelData()
must be called
with either of the following argument (sets):
tau
and n
as described above, both, or either, or
none of which may given as named arguments. If called with two unnamed
arguments, LuckModelData()
assumes the first to be tau
and the
second to be n
.
A matrix containing two columns, with the first giving the sample statistic(s) τ(x), and the second giving the corresponding sample size(s) n. (Usually, n is the same for al dimensions of τ(x).)
A list containing τ(x) and n, one or both of which may
be named tau
or n
to identify which is which. If the list
elements have no names, the first is taken as as tau
, and the second
as n
.
tauN
:A matrix with two named columns, with the first giving
the sample statistic(s) tau
, and the second giving the corresponding
sample size(s) n
. In a default LuckModelData
object,
tauN
is NULL
.
rawData
:Slot to store data vector(s) from which
τ(x) and n can be determined. For pure LuckModelData
objects (that are not simultaneously instances of a subclass inheriting
from LuckModelData
), rawData
is NULL
.
There are methods to access or replace the contents of the slots:
signature(object = "LuckModelData")
signature(object = "LuckModelData")
signature(object = "LuckModelData")
signature(object = "LuckModelData")
signature(object = "LuckModelData")
signature(object = "LuckModelData")
signature(object = "LuckModelData")
signature(object = "LuckModelData")
The replacement function for rawData
is implemented at the level of the
subclasses inheriting from LuckModelData
to allow for
distribution-specific consistency checks.
There is a method to display LuckModelData
objects by text:
signature(object = "LuckModelData")
: This is invoked
when printing a LuckModelData
object, or a LuckModel
object
containing data.
Gero Walter
Gero Walter and Thomas Augustin (2009), Imprecision and Prior-data Conflict in Generalized Bayesian Inference, Journal of Statistical Theory and Practice 3:255-271.
luck
for a general description of the package,
LuckModel
for the models using this data representation,
and ScaledNormalData
or
ExponentialData
for non-abstract subclasses intended for
analysis of scaled normal or exponential data, respectively.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # generate a LuckModelData object
data1 <- LuckModelData(tau=20, n=10)
data1
data1 <- LuckModelData(20, 10)
data2 <- LuckModelData(tau=c(50,20), n=10)
data2 <- LuckModelData(c(50,20), 10)
data2 <- LuckModelData(list(tau=c(50,20), 10))
data2 <- LuckModelData(matrix(c(50,20,10,10), ncol=2))
# access and replace slots
tauN(data1)
tau(data2)
tau(data2) <- c(0,0)
n(data2)
n(data2) <- c(5,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.