generate_data | R Documentation |
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;
generate_data(n = 100, Qp = 100, Xp = 5)
n |
Sample size. |
Qp |
Dimension of the quantile. |
Xp |
Dimension of covariates where X_i~Unif(0,1). |
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.
data = generate_data(n=100, Qp=100, Xp=5) names(data) head(data$quantiles) head(data$variables) plot(data$quantiles, main="Quantile curves")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.