gen_nonlinear_data {grpreg} | R Documentation |
Generate nonlinear example data
Description
Mainly intended to demonstrate the use of basis expansion models for sparse additive modeling; intended for use with expand_spline()
.
Usage
gen_nonlinear_data(n = 100, p = 16, seed = 1)
Arguments
n |
Sample size (numeric; default = 100). |
p |
Number of features (numeric; default = 16). |
seed |
Change to get different random data sets (numeric; default = 1). |
Examples
Data <- gen_nonlinear_data()
[Package grpreg version 3.4.0 Index]