I want to restrict some cofficients in plm model in R. For example, if I have such a model:
library(plm)
data("Produc", package = "plm")
zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,
data = Produc, index = c("state","year"))
How I can set coefficient of log(pcap) to -0.05?
There are arguments like restrict.matrix
and restrict.rhs
in plm, but they do not work.
I have allready written codes that I extensively use for data modeling - plm object is used for forecasting and testing, so I would like a solution, that works with plm object directly and could be used further in my codes.
Thanks ahead of time for any help!