kaz-yos / regmedint

R implementation of effect measure modification-extended regression-based closed-formula causal mediation analysis
https://kaz-yos.github.io/regmedint/
28 stars 5 forks source link

How to install and library the developmental version on Github #8

Open yuxx0510 opened 2 years ago

yuxx0510 commented 2 years ago

Dear regmedint team,

Thank you very much for this valuable package.

I was glad that an updated version of regmedint package supported including effect measure modification by covariates. However, since the version was not released on CRAN, I need to use the developmental version on Github. However, when I ran the code as follows: devtools :: install_github( "einsley1993/regmedint",force = TRUE) library(regmedint)

There were errors showing "package or namespace load failed for ‘regmedint’ in get(method, envir = home): lazy-load database '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/regmedint/R/regmedint.rdb' is corrupt 此外: Warning message: In get(method, envir = home) : internal error -3 in R_decompress1"

Therefore, I wonder how could I install the developmental version on Github supporting "EMM_AC_Mmodel, EMM_AC_Ymodel and EMM_MC"?

Thank you in advance. I look forward to your reply.

kaz-yos commented 2 years ago

@einsley1993 's work has been merged to this main repository. So you should be able to use the following. I need to update the README.md.

devtools::install_github("kaz-yos/regmedint") 

Also for argument name consistency, the argument names for the EMM terms are now the following:

emm_ac_mreg = NULL, emm_ac_yreg = NULL, emm_mc_yreg = NULL