R/RcppExports.R

Defines functions rwMetropolisC

Documented in rwMetropolisC

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' @title random walk Metropolis sampler using Rcpp
#' @description Use three inputs to generate random walk metropolis samples with the proposal distribution of normal distribution
#' @param sigma the first predictor (numeirc)
#' @param a the second predictor (numeric)
#' @param N the third predictor (numeric)
#' @return a random sample of size \code{N}
#' @examples
#' \dontrun{
#' rw <- rwMetropolisC(2,25,1000)
#' }
#' @export
rwMetropolisC <- function(sigma, a, N) {
    .Call('_SC19020_rwMetropolisC', PACKAGE = 'SC19020', sigma, a, N)
}
SC19020/SC19020 documentation built on Jan. 3, 2020, 12:09 a.m.