Closed upulcooray closed 1 year ago
Hi @upulcooray -- I've actually had this issue too! It arose when I used the newer version of lmtp on lmtp objects created with an older version of lmtp. When I looked at the source code, it looks like @nt-williams added a column to the fit objects (fit$id) in Fall 2021 or so. Not sure if there's a more permanent change/check coming, but what worked for for me was installing an older version of lmtp using this code:
devtools::install_github("nt-williams/lmtp",ref="d5c9d2c348bec0c79b2c5f704e38afb5b6694896", force=T)
Hi @kathoffman , It worked! Thank you very much for the quick response!!
# A tibble: 5 × 12
imp d0 d1 d2 d3 d4 d5 d0_vs_d1 d0_vs_d2 d0_vs_d3 d0_vs_d4 d0_vs_d5
<int> <list> <list> <list> <list> <list> <list> <list> <list> <list> <list> <list>
1 1 <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt>
2 2 <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt>
3 3 <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt>
4 4 <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt>
5 5 <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt> <lmtp_cnt>
BTW.. I am a big fan of your blog. I think it is the best online resource to understand TMLE and MTP for people like me (I am a dentist- no statistical background).
Thanks @kathoffman for the quick fix. Going to re-open this issue and issue a patch.
Fixed in devel.
Thank you very much for this great package. I have been using your package for several epidemiological studies and didn't have any issues. I had to move my code to a Mac PC recently (from linux) and lmtp_contrast() started to break. I cannot figure out the issue. Any help would be greatly appreciated!
I have lmtp estimates with in a tibble like this;
I want to use map2 to get contrasts like this;
Getting this error;
Removing
map2
didn't help either;Thank you! Upul