Stress Testing of Consumer Credit Default Probabilities Using Panel Data (Error using categorical/ismember (line 48))
Mostrar comentarios más antiguos
Hi all,
I am trying to use the code in "Stress Testing of Consumer Credit Default Probabilities Using Panel Data" on data I have.
I formatted the data in the same way as the data given as an example. However I get the following error
Error using categorical/ismember (line 48)
Categorical inputs to ISMEMBER must both be either ordinal or not ordinal.
Error in classreg.regr.modelutils.designmatrix>convertVar (line 504)
[tf,loc] = ismember(a,b);
Error in classreg.regr.modelutils.designmatrix>dummyVars (line 446)
group = convertVar(group,glevels); % convert group to be compatible with glevels
Error in classreg.regr.modelutils.designmatrix (line 290)
[Xj,dummynames] = dummyVars(dummyCoding{j},Xj,catLevels{j});
Error in classreg.regr.CompactTermsRegression/designMatrix (line 142)
= classreg.regr.modelutils.designmatrix(X,'Model',terms(:,varLocs), ...
Error in classreg.regr.CompactGeneralizedLinearModel/predict (line 271)
design = designMatrix(model,Xpred);
Error in GeneralizedLinearModel/predict (line 394)
predict@classreg.regr.CompactGeneralizedLinearModel(model,Xpred,varargin{:});
I could not figure out what I am doing wrong.
Thanks in advance for the help
Respuestas (0)
Categorías
Más información sobre Stress and Strain en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!