makeLearnQ: Builds a Parametric Working Model Based on Sample Size

Description Usage Details Value Author(s)

Description

Builds a Parametric Working Model Based on Sample Size

Usage

1

Details

This functions builds a sample-size-dependent parametric working model. Two fine-tune parameters are determined based on sample size n: deg=3 + \lfloor n/500\rfloor and nlev=\lceil n/250\rceil. If nlev equals one, then the model is given by the formula

Y~I(A=0)*V*poly(U)+I(A=1)*V*poly(U)

where poly(U) consists of deg orthogonal polynoms of degrees 1 to deg. If nlev is larger than or equal to two, then the model is given by the formula

Y~I(A=0)*V*(poly(U)+step(U))+I(A=1)*V*(poly(U)+step(U))

where poly(U) consists of deg orthogonal polynoms of degrees 1 to deg and step(U) consits of nlev indicator functions of subsets of [0,1] of the form \{x:x<\frac{k}{nlev}\}.

Value

Returns a formula describing the parametric model.

Author(s)

Antoine Chambaz [aut, cre]


achambaz/tsml.cara.rct documentation built on May 10, 2019, 5:10 a.m.