cvamLik | R Documentation |
After fitting a log-linear model with cvam
,
the fitted model object may be passed to this function, along with a
dataset that may contain missing or coarsened values, to compute
the likelihood of each pattern of possibly incomplete or
coarsened data for subset of variables,
possibly conditioned upon another subset of variables
cvamLik(form, obj, data, meanSeries = TRUE)
form |
a formula indicating which variables to consider, and which variables to condition on, when computing the likelihood |
obj |
an object produced by |
data |
data frame for computing the likelihood values,
possibly different from the data used to fit the model contained in
|
meanSeries |
applies when |
For structural zeros, 0/0
is returned as 0
. If any
variables are being conditioned on in form
, they must not
contain any missing or coarsened values.
A data frame containing the model variables, with a variable
likVall
holding the likelihood values
Joe Schafer Joseph.L.Schafer@census.gov
For more information, refer to the package vignette Log-Linear Modeling with Missing and Coarsened Values Using the cvam Package.
cvam
,
cvamEstimate
,
cvamImpute
,
cvamPredict
result <- cvam( ~ V1 * V2, freq=n, data=crime) cvamLik( ~ V1 + V2, result, data=crime )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.