Learn R Programming

grove (version 1.1.1)

GenerateSyntheticAnova: Generate synthetic functional ANOVA dataset

Description

This function generates a synthetic 3-factor functional ANOVA dataset.

Usage

GenerateSyntheticAnova(st.dev = 10, n.replicates = 5)

Value

A list containing the data without noise, the data with noise, and the design matrix.

Arguments

st.dev

The standard deviation of the error.

n.replicates

The number of replicates for each factor combination.

Examples

Run this code
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