slopes function

Extract individual slopes

Extract individual slopes

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

slopes(model = NA, ...)

Arguments

  • model: an object of class "feis".
  • ...: further arguments.

Returns

An N x J matrix containing the individual slopes for each cluster unit N

and slope variable J. Rownames indicate the cluster id.

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.

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)
  • Maintainer: Tobias Ruettenauer
  • License: GPL (>= 2)
  • Last published: 2022-04-01