univariate {snfa} | R Documentation |
Randomly generated univariate data
Description
A dataset for illustrating univariate non-parametric boundary regressions and various constraints.
Usage
univariate
Format
A data frame with 50 observations of two variables.
- x
Input
- y
Output
Details
Generated with the following code:
set.seed(100) N <- 50 x <- runif(N, 10, 100) y <- sapply(x, function(x) 500 * x^0.25 - dnorm(x, mean = 70, sd = 10) * 8000) - abs(rnorm(N, sd = 20)) y <- y - min(y) + 10 df <- data.frame(x, y)
[Package snfa version 0.0.1 Index]