This function creates simulated data based on a crazy function.
Arguments
- n
The number of observations to be simulated.
Value
A data frame with response y
and covariate x
.
Examples
d <- Crazy(1000)
head(d)
#> x eta y
#> 1 -0.4427755 -1.627550 -1.588204014
#> 2 2.1182652 -1.402495 -1.314162742
#> 3 0.6803905 -1.754125 -1.927737196
#> 4 -1.6057168 0.000000 -0.164981413
#> 5 -1.7622879 0.000000 0.066923747
#> 6 -1.3812997 0.000000 -0.002145472
plot(d)