필터 지우기
필터 지우기

retrieving parameters from regression results in command window

조회 수: 1 (최근 30일)
Kemin  Lang
Kemin Lang 2016년 1월 28일
답변: Abhisek Roy 2016년 2월 4일
Having the result from a regression (Y=constant*beta1+beta2*X1+beta3*X2+beta4*X3): (intercept)-estimate (say beta 1=0.0023), X1 -estimate (beta 2=12.22), X2 -estimate (beta 3=0.23452). How can I sum beta 2, beta 3? Thanks a lot!

답변 (1개)

Abhisek Roy
Abhisek Roy 2016년 2월 4일
Hi Kemin,
I am assuming you are using 'cftool' to do the regression. You can export the fit result to the workspace by right clicking on the fit, you are interested in, in the 'Table of Fits' panel and save in the workspace. It by default creates three variables - fittedmodel1(which contains the fitted coefficient), goodness1(goodness of the fit) and output1 will have details about number of parameters, which algorithm was used etc. You can use these variables to extract all the information and use them.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by