w2: Simulated w2 data used in Murray et al. (2013)

Description Format Source Examples

Description

Simulated data from the function

y_ij = 4 π - x_i + cos(x_i - π/2) + e_ij

for x_i = 0,1, … , 12 ; n_i = 5 for i=0 and n_i=3 otherwise; e_ij ~ N(0, 0.5^2)

Format

A data frame with 41 observations on the following 2 variables.

y

a numeric vector

x

a numeric vector

Source

Murray, K., M<c3><bc>ller, S. and Turlach, B.A. (2013). Revisiting fitting monotone polynomials to data, Computational Statistics 28(5): 1989–2005, doi: 10.1007/s00180-012-0390-5.

Examples

1
2
3
4
str(w2)
plot(y~x, w2)
monpol(y~x, w2)
monpol(y~x, w2, K=2)

MonoPoly documentation built on May 2, 2019, 7:59 a.m.

Related to w2 in MonoPoly...