Description Usage Arguments Value
View source: R/initsFunctions.R
Fit multiple simple models to obtain the clustering with minor SRE
1 | getClusterInitials(data, market, n_knots, n_order, n_cluster, n_trials, bFunc)
|
data |
Must be an ordered data frame by rep > group > time with theses names |
market |
A data frame with columns group, type and num |
n_knots |
Number of knots to be fitted on simple model |
n_order |
Order of basis Splines (Default: 4) |
n_cluster |
Number of grouping clusters |
n_trials |
Number of random clustering configurations to be fitted |
bFunc |
Basis function to be used: "B-Splines" or "Fourier" |
A list containing: data set with "group" and "cluster" indicating the fit with minor squared root error and an lm object of the chosen clustering configuration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.