フィルターのクリア

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 Center および File ExchangeGet 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