Learn R Programming

BayesSIM (version 1.0.0)

DATA1: Simulated Single–Index Data (n = 200, p = 4)

Description

Synthetic data from a single–index model \(y = f(X'\theta) + \varepsilon\) with \(f(u) = u^2 \exp(u)\) and \(\varepsilon \sim N(0,\sigma^2)\). The index vector is \(\theta = (2,1,1,1) / \| (2,1,1,1) \|_2\) and \(\sigma = 0.5\).

Usage

data(DATA1)

Arguments

Format

X

Numeric matrix of size 200 \(\times\) 4, entries i.i.d. \(Unif(-1, 1)\)

.
y

Numeric vector of length 200.

Examples

Run this code
data(DATA1)
str(DATA1)

Run the code above in your browser using DataLab