필터 지우기
필터 지우기

bootstrap residuals after using fitlm

조회 수: 3 (최근 30일)
Alexis Villacis
Alexis Villacis 2018년 12월 17일
Hello community,
I want to bootstrap the residuals of a simple OLS regression, i.e. generate 1000 draws of my residuals. I am using fitlm and my code is:
OLS=fitlm(x,Y)
res=OLS.Residuals.Raw;
resboot = bootstrp(1000,[],res)
But when I run this, my resboot matrix is empty.
What am I doing wrong? I just want to obatain a 1000 different draws of my residuals with replacement

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by