Learn R Programming

ordinalbayes (version 0.1.2)

coef.ordinalbayes: Extract Model Coefficients

Description

Extract Model Coefficients

Usage

# S3 method for ordinalbayes
coef(object, method = mean, ...)

Value

alpha

Summary estimates for the thresholds

zeta

Summary estimates for the unpenalized covariates. Only available if unpenalized covariates were included in the fitted model.

beta

Summary estimates for the penalized covariates

gamma

Summary estimates for the variable inclusion indicators. Not available when model="lasso"

Arguments

object

an ordinalbayes object.

method

The default is method=mean which estimates the mean of each parameter in the MCMC chain. Other options are method=median or any other relevant summary function.

...

other arguements.

See Also

ordinalbayes, print.ordinalbayes, summary.ordinalbayes, predict.ordinalbayes

Examples

Run this code
# \donttest{
data("cesc")
fit<-ordinalbayes(Stage~1, data=cesc, x=cesc[,5:45],
         model="regressvi", gamma.ind="fixed", pi.fixed=0.99,
         adaptSteps=1000, burnInSteps=1000, nChains=2,
         numSavedSteps=2000, thinSteps=2, seed=26)
coef(fit)
# }

Run the code above in your browser using DataLab