R/polynomial.R
gen_cubic.Rd
This function generates a dataset representing a structure with a cubic pattern.
gen_cubic(n = 500, range = c(-1, 2))
A numeric value (default: 500) representing the sample size.
A numeric vector (default: c(-1, 2)) representing the range along x1 axis.
A data containing a cubic structure.
set.seed(20240412) cubic <- gen_cubic(n = 500) #> ✔ Data generation completed successfully!!!