R/simer.R

Defines functions simer

Documented in simer

simer<-function(n, r){
	x <- runif(n, 0, n)
	L <- chol(exp(-abs(outer(x, x, FUN="-"))/r))
	e <- as.vector(crossprod(rnorm(n), L))
	data.frame(x=x, y=e)
}

Try the hcc package in your browser

Any scripts or data that you put into this service are public.

hcc documentation built on May 2, 2019, 2:08 a.m.