[R] Marginal effects with plm

Miluji Sb m||uj|@b @end|ng |rom gm@||@com
Thu Sep 6 14:51:48 CEST 2018


Dear John,

Apologies for not providing reproducible example. I just tried with a plm
example but ran into the same issue;

library(plm)
data("Produc", package = "plm")
zz <- plm(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp, data = Produc,
index = c("state","year"))

Ef.hd <- Effect(c("pc", "emp", "unemp"), zz)

Error in UseMethod("droplevels") :
  no applicable method for 'droplevels' applied to an object of class "NULL"

What am I doing wrong? Thanks again.

Sincerely,

Milu

	[[alternative HTML version deleted]]




More information about the R-help mailing list