predict.genloglin | R Documentation |
The predict.genloglin
method function calculates observed and model-predicted odds ratios and their confidence intervals using results from genloglin
. It offers an asymptotic normal approximation for estimating the confidence intervals for the observed and model-predicted odds ratios, and a bootstrap approach for estimating the confidence intervals for the model-predicted odds ratios.
## S3 method for class 'genloglin'
predict(object, alpha = 0.05, pair = "WY", print.status = TRUE, ...)
object |
An object of class |
alpha |
The desired alpha level. The |
pair |
For the case of three MRCVs, a character string specifying the pair of items for which odds ratios will be calculated: |
print.status |
A logical value indicating whether bootstrap progress updates should be provided. |
... |
Additional arguments passed to or from other methods. |
Wald confidence intervals are estimated for both model-based (see Appendix A of Bilder and Loughin, 2007) and observed (see Agresti, 2013, p. 70) odds ratios.
A bootstrap method is also available which provides bias-corrected accelerated (BCa) confidence intervals for the model-predicted odds ratios. See Efron (1987) for more information about BCa intervals. The predict.genloglin
function uses a jackknife approximation for estimating the empirical influence values.
The bootstrap confidence intervals are available only when boot = TRUE
in the original call to the genloglin
function.
— A list containing at least original.arg
, OR.obs
, and OR.model.asymp
.
original.arg
is a list containing the following objects:
data
: The original data frame supplied to the data
argument.
I
: The original value supplied to the I
argument.
J
: The original value supplied to the J
argument.
K
: The original value supplied to the K
argument.
nvars
: The number of MRCVs.
alpha
: The original value supplied to the alpha
argument.
OR.obs
is a numeric matrix. For the two MRCV case, the matrix contains IxJ rows corresponding to the IxJ possible pairs (Wi, Yj) and 3 columns, where column 1 corresponds to the observed odds ratio for (Wi, Yj) and columns 2 and 3 correspond to the estimated lower and upper confidence bounds, respectively. For the three MRCV case, the matrix contains 2xIxJxK rows corresponding to all possible combinations of pair
conditional on the response for each item of the 3rd MRCV, and 3 columns as described for the 2 MRCV case.
OR.model.asymp
is a numeric matrix similar to OR.obs
but where column 1 corresponds to the model-predicted odds ratios and columns 2 and 3 correspond to the estimated lower and upper confidence bounds, respectively, using an asymptotic normal approximation.
— For boot = TRUE
in the call to the genloglin
function, the primary list additionally includes boot.results
, a list containing the following objects:
B.use
: The number of bootstrap resamples used.
B.discard
: The number of bootstrap resamples discarded due to having at least one item with all positive or negative responses.
OR.model.BCa
: A numeric matrix similar to OR.obs
but where column 1 corresponds to the model-predicted odds ratios and columns 2 and 3 correspond to the estimated lower and upper confidence bounds, respectively, of the BCa intervals.
Agresti, A. (2013) Categorical data analysis (3rd ed.). Hoboken, New Jersey: John Wiley & Sons.
Bilder, C. and Loughin, T. (2007) Modeling association between two or more categorical variables that allow for multiple category choices. Communications in Statistics–Theory and Methods, 36, 433–451.
Efron, B. (1987) Better bootstrap confidence intervals. Journal of the American Statistical Association, 82, 171–185.
## For examples see help(genloglin).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.