Skip to content

Commit

Permalink
#29 rm duplicate creation of fn fit_MA_mv()
Browse files Browse the repository at this point in the history
  • Loading branch information
egouldo committed Jul 29, 2024
1 parent 2cbc5dc commit 82d624e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions R/meta_analyse_datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ meta_analyse_datasets <- function(MA_data){

cli::cli_h1(text = "Meta-analysing Datasets")

fit_MA_mv <- function(effects_analysis, Z_colname, VZ_colname, estimate_type){
Zr <- effects_analysis %>% pull({{Z_colname}})
VZr <- effects_analysis %>% pull({{VZ_colname}})
mod <- poss_fit_metafor_mv(estimate = Zr,
variance = VZr,
estimate_type = estimate_type,
data = effects_analysis)
return(mod)
}

if( any(str_detect(unique(MA_data$estimate_type), pattern = "Zr")) ){
# Must group by cols else multiple "effects_analysis" elements
# get passed to fit_MA_mv()
Expand Down

1 comment on commit 82d624e

@egouldo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#63

Please sign in to comment.