generate_data {biosensors.usc}R Documentation

generate_data

Description

Generates a quantile regression model V + V2 * v + tau * V2 * Q0 where Q0 is a truncated random variable, v = 2 * X, tau = 2 * X, V ~ Unif(-1, 1), V2 ~ Unif(-1, -1), V3 ~ Unif(0.8, 1.2), and E(V|X) = tau * Q0;

Usage

generate_data(n = 100, Qp = 100, Xp = 5)

Arguments

n

Sample size.

Qp

Dimension of the quantile.

Xp

Dimension of covariates where X_i~Unif(0,1).

Value

A biosensor object: data NULL. densities NULL. quantiles A functional data object (fdata) with the empirical quantile estimation. variables A data frame with Xp covariates.

Examples

data = generate_data(n=100, Qp=100, Xp=5)
names(data)
head(data$quantiles)
head(data$variables)
plot(data$quantiles, main="Quantile curves")

[Package biosensors.usc version 1.0 Index]