generateCauthyMetropolisHastings: Generate cauthy distribution with Metropolis Hastings method

Description Usage Arguments Value Examples

View source: R/generateCauthyMetropolisHastings.R

Description

Generate cauthy distribution with Metropolis Hastings method

Usage

1

Arguments

n

degree of freedom of t distribution

sigma

standard variance of proposal distribution

x0

initial value

N

size of random numbers required

Value

a random samples of cauthy distribution

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
n <- 1
x0 <- 10
sigma <-3
N <- 5000
rnR <- generateCauthyMetropolisHastings(n,sigma,x0,N)
print(rnR)

## End(Not run)

mrjinyx/StatComp18001 documentation built on May 19, 2019, 6:22 p.m.