summary.UPG.Logit {UPG}R Documentation

Estimation results and tables for UPG.Logit objects

Description

summary generates a summary of estimation results for UPG.Logit objects. Point estimates, estimated standard deviation as well as credible intervals for each variable are tabulated. In addition, an indicator quickly shows whether the credible interval includes zero or not. Moreover, LaTeX, HTML and pandoc tables can be quickly generated via knitr.

Usage

## S3 method for class 'UPG.Logit'
summary(
  object = NULL,
  ...,
  q = c(0.025, 0.975),
  names = NULL,
  digits = 2,
  include = NULL,
  table = NULL,
  cap = NULL
)

Arguments

object

an object of class UPG.Logit.

...

other summary parameters.

q

a numerical vector of length two providing the posterior quantiles to be extracted. Default are 0.025 and 0.975 quantiles.

names

a character vector indicating names for the variables used in the output.

digits

number of digits to be included in output. Last digit will be rounded using round.

include

can be used to summarize and tabulate only a subset of variables. Specify the columns of X that should be kept in the plot. See examples for further information.

table

can be used to return a LaTeX table ('latex'), a Word table ('pandoc') and HTML tables ('html') via knitr. Include package "booktabs" in LaTeX preamble for LaTeX tables.

cap

character vector that can be used to specify the table caption.

Value

Returns a knitr_kable object containing the summary table.

Author(s)

Gregor Zens

See Also

plot.UPG.Logit to plot a UPG.Logit object. predict.UPG.Logit to predict probabilities using a UPG.Logit object. coef.UPG.Logit to extract coefficients from a UPG.Logit object.

Examples


# estimate a logit model using example data
library(UPG)
data(lfp)
y = lfp[,1]
X = lfp[,-1]
results.logit = UPG(y = y, X = X, model = "logit")

# basic summary of regression results
summary(results.logit)

# generate a LaTeX table with subset of variables and custom names
summary(results.logit,
        include=c(1,3),
        names=c("V. kept 1", "V. kept 3"),
        table="latex")


[Package UPG version 0.3.4 Index]