Ridge: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Chuck (→Inputs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Ridge regression by Hoerl-Kennard-Baldwin. | Ridge regression by the Hoerl-Kennard-Baldwin method. | ||
===Synopsis=== | ===Synopsis=== | ||
:[b,theta] = ridge(x,y,thetamax,divs, | :[b,theta] = ridge(x,y,thetamax,divs,tf) | ||
===Description=== | ===Description=== | ||
RIDGE creates a ridge regression model | RIDGE creates a ridge regression model, using a matrix containing the values of multiple predictor variables for a set of samples (x-block) <tt>x</tt>, and a vector containing the values of a single predictor variable for the same set of samples (y-block) <tt>y</tt>. | ||
====Inputs==== | |||
* '''x''' = matrix of input data for the predictor variables | |||
* '''y''' = vector of input data for the predicted variable | |||
* '''thetamax''' = the maximum value of the ridge parameter <tt>theta</tt> to consider (<tt>thetamax</tt> > 0). | |||
* '''divs''' = the number of values of the ridge parameter between 0 and '''thetamax''' to be used for calculating the regression vector shown in the plots | |||
'''Note:''' In most instances the optimum ridge parameter will be less than 0.1, often as low as 0.01. A good starting guess when working with the method is to specify thetamax = 0.1 with divs = 20. | |||
====Optional Inputs==== | |||
Outputs | * '''tf''' = text flag input; allows the user to place the labels on the plot with the mouse when it is set to 1 | ||
====Outputs==== | |||
* '''b''' = final regression vector, corresponding to the best guess value for the ridge parameter '''theta''' | |||
* '''theta''' = best-guess value of the ridge parameter by the Hoerl-Kennard method | |||
===See Also=== | ===See Also=== | ||
[[pcr]], [[pls]], [[analysis]], [[ridgecv]] | [[pcr]], [[pls]], [[analysis]], [[ridgecv]], [[regcon]], [[rinverse]] |
Latest revision as of 12:31, 9 October 2008
Purpose
Ridge regression by the Hoerl-Kennard-Baldwin method.
Synopsis
- [b,theta] = ridge(x,y,thetamax,divs,tf)
Description
RIDGE creates a ridge regression model, using a matrix containing the values of multiple predictor variables for a set of samples (x-block) x, and a vector containing the values of a single predictor variable for the same set of samples (y-block) y.
Inputs
- x = matrix of input data for the predictor variables
- y = vector of input data for the predicted variable
- thetamax = the maximum value of the ridge parameter theta to consider (thetamax > 0).
- divs = the number of values of the ridge parameter between 0 and thetamax to be used for calculating the regression vector shown in the plots
Note: In most instances the optimum ridge parameter will be less than 0.1, often as low as 0.01. A good starting guess when working with the method is to specify thetamax = 0.1 with divs = 20.
Optional Inputs
- tf = text flag input; allows the user to place the labels on the plot with the mouse when it is set to 1
Outputs
- b = final regression vector, corresponding to the best guess value for the ridge parameter theta
- theta = best-guess value of the ridge parameter by the Hoerl-Kennard method