PSM.linear.run

Runs a general linear forward model


Syntax



Description

Y = PSM.linear.run(X, slopes)

Runs a general linear model on the input variables X using a set of input slopes/linear coefficients. Each row of X is a variable, and the order of variables should match the order of slopes. Uses a linear intercept of 0.

Y = PSM.linear.run(X, slopes, intercept)

Specify a linear intercept to use for the linear model.


Input Arguments

X

numeric array, [nVariables x …]
The variables to use as input to the linear model. Each row of the input array is one variable.

slopes

numeric vector [nVariables]
The linear coefficients/slopes associated with each of the input variables.

intercept

numeric scalar
The linear intercept to use for the model. By default, uses an intercept of 0.

Output Arguments

Y

numeric array, [1 x …]
The estimates generated by running the linear model.