Skip to content

Commit

Permalink
further bug fixing on rmamvmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
Rostu committed Sep 4, 2024
1 parent 90513fd commit 11c8676
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/rmaMVModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,24 @@
#' @return returns a fitted rma_mv model
#' @author Robert Studtrucker
#' @export
#'

rmaMVModel <- function(yi,vi,measure,d,pred1=NULL,pred2=NULL,nesting=NULL) {

#load needed dependencies
#library(metafor)
#library(psych)
#library(labelVector)
library(jsonlite)

requireNamespace("metafor")
requireNamespace("psych")
#requireNamespace("labelVector")

#load the in variable d defined dataset from the package
dat <- d
if(!is.null(nesting)){
nesting <- fromJSON(nesting)
nesting <- jsonlite::fromJSON(nesting)
}

heckParameter(dat,c(yi,vi))
Expand Down

0 comments on commit 11c8676

Please sign in to comment.