xnfx - High order predictor matrix for regression analysis

Version 1.0.0.0 (2.67 KB) by Ieong
extension of x2fx to generate higher order predictor matrix for regression analysis
277 Downloads
Updated 27 Nov 2012

View License

An extension to X2FX which can convert predictors to design matrix to higher order (equal or lower than dimension of x).

Let A and B represent the two columns of X. The rows of the MODEL matrix specify the terms 1, A, B, C, A.*B, A.*C, B.*C, A.^2, B.^2, C.^2, A*B*C, A.^3, B.^3, C.^3.

Cite As

Ieong (2025). xnfx - High order predictor matrix for regression analysis (https://uk.mathworks.com/matlabcentral/fileexchange/39144-xnfx-high-order-predictor-matrix-for-regression-analysis), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0