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.2208769 -1.422945 -1.45210815
#> 2 2.5822010 -1.123869 -1.01589732
#> 3 0.4010547 -1.706491 -1.63303881
#> 4 -1.8451809 0.000000 0.03682007
#> 5 2.3308183 -2.288101 -2.17281977
#> 6 -1.6252711 0.000000 -0.17125743
plot(d)