Skip to content

Commit

Permalink
Added cpp argument to UpdateRPlee11() (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Oct 22, 2024
1 parent c0277d5 commit 8418d3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
13 changes: 3 additions & 10 deletions R/UpdateRPlee11.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,14 @@
#'
#' @name UpdateRPlee11
#'
#' @param sobj a list containing observed data
#' @param hyperpar a list containing prior parameter values
#' @param ini a list containing prior parameters' initial values
#' @param S the number of subgroups
#' @param method a method option from
#' \code{c("Pooled", "CoxBVSSL", "Sub-struct")}
#' @param MRF_G logical value. \code{MRF_G = TRUE} is to fix the MRF graph which
#' is provided in the argument \code{hyperpar}, and \code{MRF_G = FALSE} is to
#' use graphical model for leanring the MRF graph
#' @inheritParams BayesSurvive
#' @inheritParams func_MCMC
#'
#' @return A list object with component 'beta.ini' for the updated coefficients
#' and component 'acceptlee' for the MCMC acceptance rate
#'
#' @export
UpdateRPlee11 <- function(sobj, hyperpar, ini, S, method, MRF_G) {
UpdateRPlee11 <- function(sobj, hyperpar, ini, S, method, MRF_G, cpp = FALSE) {
p <- sobj$p
tau <- hyperpar$tau
cb <- hyperpar$cb
Expand Down
9 changes: 6 additions & 3 deletions man/UpdateRPlee11.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8418d3e

Please sign in to comment.