Learn R Programming

coneproj (version 1.18)

cubic: A Data Set for the Example of the Qprog Function

Description

This data set is used for the example of the qprog function.

Usage

data(cubic)

Arguments

Format

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

x

The predictor vector.

y

The response vector.

Details

We use the qprog function to fit a constrained cubic to this data set. The constraint is that the true regression is increasing, convex and nonnegative.