univariate: Randomly generated univariate data

Description Usage Format Details

Description

A dataset for illustrating univariate non-parametric boundary regressions and various constraints.

Usage

1

Format

A data frame with 50 observations of two variables.

x

Input

y

Output

Details

Generated with the following code:

1
2
3
4
5
6
7
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)

snfa documentation built on May 1, 2019, 9:16 p.m.

Related to univariate in snfa...