This function creates simulated data based on a crazy function.

Crazy(n = 1000)

Arguments

n

The number of observations to be simulated.

Value

A data frame with response y and covariate x.

See also

Examples

d <- Crazy(1000)
head(d)
#>           x       eta            y
#> 1 -1.964827  0.000000 -0.008366377
#> 2 -2.599323 -1.500000 -1.558440573
#> 3 -1.427539  0.000000  0.130167824
#> 4  1.370282 -1.801684 -1.792195074
#> 5  2.314125 -2.271501 -2.379683652
#> 6  2.985968 -2.249610 -2.136475528
plot(d)