This function generates a dataset representing a structure with a cubic pattern.
Examples
set.seed(20240412)
cubic <- gen_cubic(n = 500, p = 4)
#> ✔ 2 noise dimensions have been generated successfully! 🎉
#> ✔ Data generation completed successfully! 🎉