You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When estimating a plm() model, all variables in model.frame() gain the additional class attribute "pseries". This leads to an error in
if (!data.table::fsetequal(stats::na.omit(model_frame),
stats::na.omit(data[, names(model_frame), with=FALSE]))) {
stop("'data' is not the data.frame which was used in 'model'.")
}
within sdc_model().
Here' a reprex:
library(plm)
library(sdcLog)
data("Grunfeld", package="plm")
mod_plm<- plm(inv~value+capital, data=Grunfeld, model="within")
sdc_model(Grunfeld, mod_plm, id_var="firm")
#> Error in .set_ops_arg_check(x, y, all): Item 1 of x is 'pseries' but the corresponding item of y is 'numeric'.
When estimating a
plm()
model, all variables inmodel.frame()
gain the additional class attribute"pseries"
. This leads to an error inwithin
sdc_model()
.Here' a reprex:
Created on 2023-03-02 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: