Learn R Programming

gets (version 0.38)

coef.logitx: Extraction functions for 'logitx' objects

Description

Extraction functions (of type S3 methods) for objects of class 'logitx'

Usage

# S3 method for logitx
coef(object, ...)
  # S3 method for logitx
fitted(object, zero.prob=FALSE, ...)
  # S3 method for logitx
logLik(object, ...)
  # S3 method for logitx
plot(x, ...)
  # S3 method for logitx
print(x, signif.stars=TRUE, ...)
  # S3 method for logitx
summary(object, ...)
  # S3 method for logitx
toLatex(object, digits = 4, gof = TRUE, nonumber = FALSE, nobs = "T", ...)
  # S3 method for logitx
vcov(object, ...)

Value

Various, depending on the method

Arguments

object

an object of class 'logitx'

x

an object of class 'logitx'

zero.prob

logical. If FALSE (default), then the probabilities of a one are returned as fitted values. If TRUE, then the zero probabilities are returned as fitted values

signif.stars

logical. If TRUE, then p-values are additionally encoded visually, see printCoefmat

digits

integer, the number of digits in the LaTeX print

gof

logical that determines whether goodness-of-fit information should be included in the LaTeX print

nonumber

logical that determines whether a "nonumber" tag should be added to each equation in the LaTeX print

nobs

character that determines the label for the number of observations in the LaTeX print

...

additional arguments

Author

Genaro Sucarrat, http://www.sucarrat.net/

See Also

logitx, logitxSim, gets.logitx

Examples

Run this code

##simulate from ar(1):
set.seed(123) #for reproducibility
y <- logitxSim(100, ar=0.3)

##estimate and store result:
mymod <- logitx(y, ar=1)

##extract stuff:
coef(mymod)
fitted(mymod)
logLik(mymod)
plot(mymod)
print(mymod)
summary(mymod)
toLatex(mymod)

Run the code above in your browser using DataLab