Description Usage Arguments Value Examples
View source: R/generateCauthyMetropolisHastings.R
Generate cauthy distribution with Metropolis Hastings method
1 | generateCauthyMetropolisHastings(n, sigma, x0, N)
|
n |
degree of freedom of t distribution |
sigma |
standard variance of proposal distribution |
x0 |
initial value |
N |
size of random numbers required |
a random samples of cauthy distribution
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.