getClusterInitials: Fit multiple simple models to obtain the clustering with...

Description Usage Arguments Value

View source: R/initsFunctions.R

Description

Fit multiple simple models to obtain the clustering with minor SRE

Usage

1
getClusterInitials(data, market, n_knots, n_order, n_cluster, n_trials, bFunc)

Arguments

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"

Value

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


gabrielfranco89/aggrmodel documentation built on June 1, 2020, 8:57 a.m.