coef.ordinalbayes {ordinalbayes}R Documentation

Extract Model Coefficients

Description

Extract Model Coefficients

Usage

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

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.

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"

See Also

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

Examples


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)


[Package ordinalbayes version 0.1.1 Index]