Crazy.Rd
This function creates simulated data based on a crazy function.
Crazy(n = 1000)
n | The number of observations to be simulated. |
---|
A data frame with response y
and covariate x
.
#> x eta y #> 1 -2.5154992 -1.5000000 -1.5711524 #> 2 2.0059982 -0.8972532 -0.8310353 #> 3 0.6045653 -1.8394798 -1.8103668 #> 4 -2.0567494 -1.5000000 -1.4802042 #> 5 -2.9556034 -1.5000000 -1.6203566 #> 6 -0.2016390 -1.4010222 -1.4050039plot(d)