install.packages("devtools")
devtools::install_github("zhenkewu/mpcr")
mpcr
?First R implementation of intervention effect estimation under matched-pair cluster randomized design, using baseline covariates for effect estimation consistency and efficiency.
Reference is here.
mpcr
functionYou need to specify treatment arm, cluster number, primary outcome, covariates. Note that suppose there are N pairs, then the first pair of clusters are numbered as 1 and N+1; second pair as 2, N+2, etc.
can be found here
current version does not have Bayes estimates, please specify BAYES_STATUS as FALSE. The Bayesian estimation code is ready. I will update it soon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.