powered by
This function generates a synthetic 3-factor functional ANOVA dataset.
GenerateSyntheticAnova(st.dev = 10, n.replicates = 5)
A list containing the data without noise, the data with noise, and the design matrix.
The standard deviation of the error.
The number of replicates for each factor combination.
data <- GenerateSyntheticAnova(st.dev = 5, n.replicates = 10) ix <- 1 plot(data$clean.Y[ix, ], type = "l", col = "red", ylab = "") lines(data$noisy.Y[ix, ], col = "blue")
Run the code above in your browser using DataLab