MatthieuStigler / Misconometrics

A bunch of small R scripts useful in econometrics
GNU General Public License v3.0
6 stars 4 forks source link

error message #3

Closed liyingluo999 closed 3 years ago

liyingluo999 commented 3 years ago

Hello Matthieu,

Thank you for sharing the code. I ran the following code dec_covar(object = model_full_1, var_main = "Education") and got an error message: Error in data.frame(term = names(co), estimate = unname(co), stringsAsFactors = FALSE) : arguments imply differing number of rows: 0, 2

Any idea? Thanks!

Best, Liying

MatthieuStigler commented 3 years ago

Can you please provide a reprex: https://www.tidyverse.org/help/

liyingluo999 commented 3 years ago

Rplot

liyingluo999 commented 3 years ago

Hi Matthieu,

I read over the conversations that you had with Lisa, which suggested that the error may have something to do with the dependent packages. I updated all packages including dplyr and data.table, and then the code runs without complaining. Thank you!

MatthieuStigler commented 3 years ago

great, any idea about the versions you had before, for further reference?

liyingluo999 commented 3 years ago

sorry no idea; I should have kept track of it. I feel that the key is to manually update the data.table and the dplyr packages.