Skip to content

Commit

Permalink
Merge pull request #119 from ajaynadig/master
Browse files Browse the repository at this point in the history
allow numeric prior
  • Loading branch information
pcarbo authored Aug 9, 2023
2 parents 1268d11 + 60ca463 commit 59e84f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/mash.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ mash = function(data,
if(!missing(optmethod)){stop("cannot supply optmethod if fixg is TRUE")}
} else {
optmethod = match.arg(optmethod)
prior = match.arg(prior)
if (!is.numeric(prior)) {
prior = match.arg(prior)
}
}

# Get the number of samples (J), the number of mixture components
Expand Down

0 comments on commit 59e84f6

Please sign in to comment.