How do I use MVREGRESS function from the Statistics Toolbox with multi-dimensional output predictions Y?
조회 수: 1 (최근 30일)
이전 댓글 표시
I would like to perform multivariate linear regression in MATLAB. I have p predictors (independent variables) and n observations. My dependent variable Y is multidimensional, that is for every observation, my Y is a vector, not a scalar . In other words, my Y is an [n x d] matrix where d>1. I would like to know what options I have for performing this type of regression.
채택된 답변
MathWorks Support Team
2012년 3월 29일
This is an example of how to use the MVREGRESS function in the case where your dependent variable Y is multidimensional. If your Y is single-dimensional, meaning that it is [n x 1], see the Related Solution at the bottom of this page.
Example using MVREGRESS with cell array inputs:
1. Download 'dataset.mat' which contains predictor and 3-dimensional target data.
2. Download and execute 'example2.m' which illustrates how to format the data into cell inputs to MVREGRESS. Comments in EXAMPLE2 provide additional information.
You may also wish to consult the documentation for the function MVREGRESS by typing 'doc mvregress' at the MATLAB command prompt.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!