Skip to content

Commit

Permalink
Update mcmc_fiSAN_sparsemix.R
Browse files Browse the repository at this point in the history
added \dontrun to long example
  • Loading branch information
Fradenti committed Sep 30, 2023
1 parent 66ccec9 commit c26461f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/mcmc_fiSAN_sparsemix.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@
#' }
#'
#' @examples
#' \dontrun{
#' set.seed(123)
#' y <- c(rnorm(170),rnorm(70,5))
#' g <- c(rep(1,100), rep(2, 140))
#' plot(density(y[g==1]), xlim = c(-5,10))
#' lines(density(y[g==2]), col = 2)
#' out <- sample_fiSAN_sparsemix(nrep = 3000, y = y, group = g, beta = 0.01)
#' out
#'
#' }
#'
#' @references Kalli, M., Griffin, J.E., and Walker, S.G. (2011). Slice Sampling Mixture Models,
#' \emph{Statistics and Computing}, 21, 93–105. DOI: 10.1007/s11222-009-9150-y
Expand Down

0 comments on commit c26461f

Please sign in to comment.