Computer crashes/restarts when running stepwiseglm
이전 댓글 표시
Hello,
I'm running a simple script that runs a GLM using stepwiseglm. I've tried to run the code 6 times now and each time my computer unexpectedly crashed/restarted on its own. Sometimes it crashes soon after I run the script (minutes), sometimes it runs for hours and stepwiseglm produces output (list of components that it included in the model), but it never seems to finish.
Has anyone run into something like this?
My system:
MATLAB 2018b
Win 10 pro
10.0.17134 build 17134
Thanks for any insights!
Script code:
------------------------------------------
%load data
load('B01_POS_NEG.mat')
ResponseVar = B01_POS_NEG{:,10};
PredictorsVar = B01_POS_NEG{:,11:138};
%compute Generalized Linear Model
size = length(PredictorsVar);
%1. stepwise
IncludeP = 0.01; %maximum p-value allowed for included components
ExcludeP = 0.05; %minimum p-value to exclude component
mdl = stepwiseglm(PredictorsVar,ResponseVar,'linear','Distribution','binomial','Link','logit','PEnter',IncludeP,'PEnter',ExcludeP);
%Select linear predictors
scores = mdl.Fitted.LinearPredictor;
------------------------------------------
The B01_POS_NEG variable has 14815 rows and 138 columns, about 15Mb.
댓글 수: 3
Walter Roberson
2019년 7월 23일
I recommend that you check for a hardware memory problem.
Walter Roberson
2019년 7월 23일
https://www.techrepublic.com/article/how-to-detect-bad-ram-with-the-windows-memory-diagnostic-tool/
Luka Zevnik
2019년 7월 23일
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Noncentral t Distribution에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!