<< stepwiselm Regression stepwiselm_print >>

stixbox >> stixbox > Regression > stepwiselm_generate

stepwiselm_generate

Generate a linear model from data and a specification

Calling Sequence

X=stepwiselm_generate(data,modelspec)
[X,multiindices]=stepwiselm_generate(data,modelspec)

Parameters

data :

a samplesize-by-nbinputs matrix of doubles, the input variables where samplesize is the number of experiments and nbinputs is the number of variables

modelspec :

a 1-by-1 matrix of doubles or string. If modelspec is a double, integer value, greater or equal than 0, the total degree of the polynomial. If modelspec is a string, it can be equal to "constant", "linear", "interactions", "purequadratic", "quadratic" or "polyij". See below for a detailed description of each model.

X :

a n-by-nbcoeffs matrix of doubles, the input of the generated linear model

multiindices :

a nbcoeffs-by-nbinputs matrix of doubles, integer value, greater or equal than 0, the exponents

Description

Generate a model from a specification, with required interactions if necessary.

The variable modelspec allows to choose the total degree of the model.

The available string values of the modelspec are the following.

Authors


Report an issue
<< stepwiselm Regression stepwiselm_print >>