bread-methods: ~~ Methods for Function 'bread' in Package 'sandwich' ~~

Description Usage Arguments Methods Examples

Description

It computes the bread in the sandwich representation of the covariance matrix of the GMM estimator.

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'gmmfit'
bread(x, ...)

## S4 method for signature 'sgmmfit'
bread(x, ...)

## S4 method for signature 'tsls'
bread(x, ...)

Arguments

x

GMM fit object

...

Arguments to pass to other methods

Methods

signature(x = "gmmfit")
signature(x = "sgmmfit")
signature(x = "tsls")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(simData)
theta <- c(beta0=1,beta1=2)
model1 <- gmmModel(y~x1, ~z1+z2, data=simData)

res <- modelFit(model1)
m <- meatGmm(res)
b <- bread(res)

## Sandwich vcov
b

## TSLS
model2 <- gmmModel(y~x1, ~z1+z2, data=simData, vcov="iid")
res <- tsls(model2)
bread(res)

gmm4 documentation built on Dec. 6, 2019, 3:01 a.m.