| SpecModel-class | R Documentation |
Classes describing all the parts of a model that can be specified wihout knowing the exact structure of, and, possibly variation in, the data.
The specification might, for instance, contain a list
of main effects and interactions to be included
in a hierarchical model, but not the priors for
themain effects and interactions, which depend
on the length and dimtype
of the dimensions. These are not known until the
relevant data, such as outcome variable y,
are supplied, which occurs in the call to function
estimateModel, estimateCounts,
or estimateAccount.
callThe original call
to function Model.
nameYThe name of the outcome variable, which, in models for the data, may be the name of a dataset.
seriesThe name of the demographic series being modelled. Used only when dealing with demographic accounts.
varsigmaData-level standard deviation, when this is supplied by the user (and treated as known.)
nuVarsigmaDegrees of freedom for truncated half-t prior for data-level standard deviation.
AVarsigmaScale for truncated half-t prior for data-level standard deviation.
varsigmaMaxMaximum value for data-level standard deviation.
probIn a Poisson-binomial model, the probability that a person or event is enumerated and is placed in the correct cell.
lowerLower limit for the data-level rate, probability, or mean parameter.
upperUpper limit for the data-level rate, probability, or mean parameter.
toleranceSmall quantity added to lower
or subtracted from upper when testing
whether a proposed value for a data-level rate,
probability, or mean is within the required bounds.
maxAttemptMaximum number of attempts at generating a proposal for a data-level rate, probability or mean before giving up and retaining the current value, within one iteration of the Gibbs sampler.
scaleThetaThe standard deviation of the proposal density for Metropolis-Hastings updates of the data-level rate, probability, or mean parameter.
formulaMuA formula
describing the main effects and interactions in
a hierarchical model.
specsPriorsA list of object of class
SpecPrior, describing
any non-default priors for main effects and
interactions.
nameSpecPriorsThe names of the main effects or interactions that have non-default priors.
nuDegrees of freedom for TFixed model.
nuSigmaDegrees of freedom for truncated half-t prior for standard deviation in prior (level 2) model.
ASigmaScale for truncated half-t prior for standard deviation in prior (level 2) model.
sigmaMaxMaximum value for standard deviation in prior (level 2) model.
aggregateAn object of class
SpecAggregate.
meanVector of means in NormalFixed or TFixed model - subsetted to
include only cells that are observed in y.
meanAllVector of means in NormalFixed or TFixed model, before subsetting.
sdVector of standard deviations or scales in NormalFixed or TFixed
model - subsetted to include only cells that are observed in y
sdAllVector of standard deviations or scales in NormalFixed model, or TFixed model before subsetting.
metadataMetadata for mean and sd.
metadataAllMetadata for meanAll and sdAll.
useExposeWhether the model includes and exposure term.
In normal usage, it should not be necessary to
access, or even know about, the slots of a
SpecModel object. The slots are not part of
the API of the package, and may change in future.
Object of class SpecModel are created
by a call to function Model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.