Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

slopes

Extract individual slopes


Description

Extracts the individual slopes (alpha_i) from a feis object created by feis.

Usage

slopes(model = NA, ...)

Arguments

model

an object of class "feis".

...

further arguments.

Details

The function extracts a matrix containing the individual slope parameters (alpha_i), which equals the coefficient(s) of regressing the depenent variable on the slope parameter(s).

If slope variables are perfectly collinear within a cluster, one variable is dropped and the function returns 0 for the respective slope and cluster.

Value

An N x J matrix containing the individual slopes for each cluster unit N and slope variable J. Rownames indicate the cluster id.

Examples

data("Produc", package = "plm")
feis.mod <- feis("log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp | year",
                 data = Produc, id = "state", robust = TRUE)
slps <- slopes(feis.mod)

feisr

Estimating Fixed Effects Individual Slope Models

v1.2.0
GPL (>= 2)
Authors
Tobias Ruettenauer [aut, cre] (<https://orcid.org/0000-0001-5747-9735>), Volker Ludwig [aut] (<https://orcid.org/0000-0003-3118-3172>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.