lm function on transformed data.plm(formula, data, subset, na.action, effect = c("individual","time","twoways"),
model = c("within","random","ht","between","pooling","fd"),
random.method = c("swar","walhus","amemiya","nerlove", "kinla"),
inst.method = c("bvk","baltagi"), restrict.matrix = NULL,
restrict.rhs = NULL, index = NULL, ...)
## S3 method for class 'plm':
summary(object, .vcov = NULL, ...)
## S3 method for class 'summary.plm':
print(x, digits = max(3, getOption("digits") - 2),
width = getOption("width"), subset = NULL, ...)
## S3 method for class 'plm':
plot(x, dx = 1, N = NULL, ...)"plm",data.frame,lm for "plm", a character or
numeric vector indicaing asubset of the table of coefficient to be
printed for "print.summary.plm",lm,"individual", "time" or "twoways","pooling", "within",
"between", "random", "fd" and "ht","swar" (the default value),
"amemiya", "walhus", "nerlove" and "kinla","bvk" and "baltagi",c("plm","panelmodel").
A "plm" object has the following elements :'pFormula' describing the
model,'pdata.frame' containing the
variables used for the estimation: the response is in first position and
the two indexes in the last positions,'ercomp' providing the
estimation of the components of the errors (for random effects models only),print, summary and print.summary methods.plm is a general function for the estimation of linear panel
models. It supports the following estimation methods: pooled OLS
(model="pooling"), fixed effects ("within"), random
effects ("random"), first--differences ("fd") and between
("between"). It supports unbalanced panels and two--way effects
(although not with all methods).
For random effects models, 4 estimators of the transformation
parameter are available : swar (Swamy and Arora),
amemiya, walhus (Wallace and Hussain) and nerlove.
Instrumental variables estimation is obtained using two-part formulas,
the second part indicating the instrumental variables used. This can be
a complete list of instrumental variables or an update of the first
part. If, for example, the model is y ~ x1 + x2 + x3, with
x1 and x2 endogenous and z1 and z2 external
instruments, the model can be estimated with:
formula=y~x1+x2+x3 | x3+z1+z2,formula=y~x1+x2+x3 | .-x1-x2+z1+z2.inst.method="bvk" or if inst.method="baltagi".
The Hausman and Taylor estimator is computed if model="ht".data("Produc", package = "plm")
zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,
data = Produc, index = c("state","year"))
summary(zz)Run the code above in your browser using DataLab