R/makedata.bc.R

Defines functions makedata.bc

Documented in makedata.bc

makedata.bc = function(lambda.x = 1, lambda.y = 1, a = 0, x.max = 5, n = 200, sigma = 1, seed = NULL){
 set.seed(seed)
 x = def.log(seq(from = 1, to = x.max + 1, length.out = n), lambda = lambda.x)
 y = def.exp(x + a + rnorm(n, sd = sigma), lambda = lambda.y)
 return(data.frame(x = x, y = y))
}

Try the desk package in your browser

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

desk documentation built on May 29, 2024, 6:05 a.m.