Learn R Programming

Rchoice (version 0.3-6)

bread.Rchoice: Bread for sandwiches

Description

Computes the ``bread'' of the sandwich covariance matrix for a model of class Rchoice

Usage

# S3 method for Rchoice
bread(x, ...)

Value

the covariance matrix times observations

Arguments

x

a fitted model of class Rchoice,

...

Other arguments when bread is applied to another class object.

Details

For more information see bread from the package sandwich.

References

Zeileis A (2006), Object-oriented Computation of Sandwich Estimators. Journal of Statistical Software, 16(9), 1--16.

Examples

Run this code
## Probit model
data("Workmroz")
probit <- Rchoice(lfp ~ k5 + k618 + age + wc + hc + lwg + inc,  
                  data = Workmroz , family = binomial('probit'))
summary(probit)

library("sandwich")
bread(probit) 

Run the code above in your browser using DataLab