sigmaRho: Compute sigma_u, sigma_e, and rho after fixed or random...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sigmaRho.R

Description

Compute sigma_u, sigma_e, and rho after fixed or random effects model

Usage

1
sigmaRho(fit)

Arguments

fit

A model fit with plm (plm) and model = "within" or model = "random".

Value

A numeric vector containing the named components

Results are also printed to the console.

Author(s)

Jonah Gabry <jsg2201@columbia.edu>

See Also

plm

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Model from plm help page:
data("Produc", package = "plm")
fit <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,
           data = Produc, index = c("state","year"), model = "random")
sigmaRho(fit)

## End(Not run)

jgabry/QMSS_package documentation built on May 19, 2019, 7:18 a.m.