Skip to contents

Two-fold-uniform density and regression example

Usage

two_fold_uniform_example

Format

A data frame with 1000 rows and 2 variables:

x

Predictor generated as the sum of two independent uniform random variables.

y

Response generated as y = -x^2 + 3 * x + x * epsilon, with standard-normal epsilon.

Details

A Stata copy of the same example is installed at system.file("extdata", "two_fold_uniform_example.dta", package = "rbbnp").