<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ordinal Target with 11 levels in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923948#M10751</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi. Sorry for the delay. I'm just giving my data a little more scrutiny. I'm having trouble getting the residual plots with the suggested option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;reg&lt;/STRONG&gt; data=OSAT_CLIENTES_B2C&lt;/P&gt;&lt;P&gt;plots=diagnostics;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model OS_TGT = &amp;amp;list_vars.&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTION=STEPWISE&lt;/P&gt;&lt;P&gt;SLE=&lt;STRONG&gt;0.05&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SLS=&lt;STRONG&gt;0.05&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INCLUDE=&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;STB SS1 SS2 CORRB COVB CLB&lt;/P&gt;&lt;P&gt;PCORR1 PCORR2 SCORR1 SCORR2&lt;/P&gt;&lt;P&gt;ALPHA=&lt;STRONG&gt;0.05&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;COLLIN COLLINOINT TOL VIF SPEC ACOV DW&amp;nbsp;;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=PREDLINREGPREDICTIONS_X&lt;/P&gt;&lt;P&gt;PREDICTED=predicted_OS_TGT&lt;/P&gt;&lt;P&gt;RESIDUAL=residual_OS_TGT&lt;/P&gt;&lt;P&gt;STUDENT=student_OS_TGT&lt;/P&gt;&lt;P&gt;RSTUDENT=rstudent_OS_TGT&lt;/P&gt;&lt;P&gt;LCL=lcl_OS_TGT&lt;/P&gt;&lt;P&gt;LCLM=lclm_OS_TGT&lt;/P&gt;&lt;P&gt;UCL=ucl_OS_TGT&lt;/P&gt;&lt;P&gt;UCLM=uclm_OS_TGT ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 11:06:42 GMT</pubDate>
    <dc:creator>SCS78</dc:creator>
    <dc:date>2024-04-11T11:06:42Z</dc:date>
    <item>
      <title>Ordinal Target with 11 levels</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923783#M10749</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide to fit a model that aims to predict an ordinal variable ranging from 0 to 10, representing a rating. As predictors, I'm using binary, categorical, and continuous variables. I've tried both a simple regression model and also a logistic regression model using glogit, probit, and clogit as link functions.&lt;/P&gt;&lt;P&gt;For the regression model, I obtained a reasonably good fit with an R-squared around 87%. However, when I look at the predicted values, they always range between 7.3 and 8.5 for all levels of the target variable. I assume that the tails of my response are not being properly captured even with the high R-squared.&lt;/P&gt;&lt;P&gt;As for the logistic model, I have a higher misclassification rate even in the training data.&lt;/P&gt;&lt;P&gt;I also tried balancing my sample to better capture the pattern between levels, but I encountered the same problem in both approaches (linear regression and logistic regression).&lt;/P&gt;&lt;P&gt;Do you have any suggestions on which types of modeling I should use and how I can improve, i.e., obtain more accurate scores?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923783#M10749</guid>
      <dc:creator>SCS78</dc:creator>
      <dc:date>2024-04-10T12:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal Target with 11 levels</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923786#M10750</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;For the regression model, I obtained a reasonably good fit with an R-squared around 87%. However, when I look at the predicted values, they always range between 7.3 and 8.5 for all levels of the target variable. I assume that the tails of my response are not being properly captured even with the high R-squared.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is a head-scratcher. But could you show us the residual plots from PROC REG if you choose PLOTS=DIAGNOSTICS? Please make screen capture(s) of the plots and include them in your reply by clicking on the "Insert Photos" icon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Another thought I had is that your x-variables don't vary enough to produce a wider set of predictions. The high R-squared would indicate that most of the data is well predicted and its only the extremes of Y (where there are few values?) that are not well predicted.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 13:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923786#M10750</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-10T13:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal Target with 11 levels</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923948#M10751</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi. Sorry for the delay. I'm just giving my data a little more scrutiny. I'm having trouble getting the residual plots with the suggested option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;reg&lt;/STRONG&gt; data=OSAT_CLIENTES_B2C&lt;/P&gt;&lt;P&gt;plots=diagnostics;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model OS_TGT = &amp;amp;list_vars.&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECTION=STEPWISE&lt;/P&gt;&lt;P&gt;SLE=&lt;STRONG&gt;0.05&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SLS=&lt;STRONG&gt;0.05&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INCLUDE=&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;STB SS1 SS2 CORRB COVB CLB&lt;/P&gt;&lt;P&gt;PCORR1 PCORR2 SCORR1 SCORR2&lt;/P&gt;&lt;P&gt;ALPHA=&lt;STRONG&gt;0.05&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;COLLIN COLLINOINT TOL VIF SPEC ACOV DW&amp;nbsp;;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=PREDLINREGPREDICTIONS_X&lt;/P&gt;&lt;P&gt;PREDICTED=predicted_OS_TGT&lt;/P&gt;&lt;P&gt;RESIDUAL=residual_OS_TGT&lt;/P&gt;&lt;P&gt;STUDENT=student_OS_TGT&lt;/P&gt;&lt;P&gt;RSTUDENT=rstudent_OS_TGT&lt;/P&gt;&lt;P&gt;LCL=lcl_OS_TGT&lt;/P&gt;&lt;P&gt;LCLM=lclm_OS_TGT&lt;/P&gt;&lt;P&gt;UCL=ucl_OS_TGT&lt;/P&gt;&lt;P&gt;UCLM=uclm_OS_TGT ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 11:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/923948#M10751</guid>
      <dc:creator>SCS78</dc:creator>
      <dc:date>2024-04-11T11:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ordinal Target with 11 levels</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/924048#M10755</link>
      <description>For many ordinal levels of a variable ,it is very suited for Machine Learning Method, like Decision Tree ,Random Forest , Neutral Net .Check:&lt;BR /&gt;PROC HPSPLIT&lt;BR /&gt;PROC HPFOREST&lt;BR /&gt;PROC HPSVM&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;Also you could try PROC PLS (partial least squares ) which is very robust and accurate, and unlike Machine Learning Method which usually are end with over-fited problem.</description>
      <pubDate>Fri, 12 Apr 2024 03:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Ordinal-Target-with-11-levels/m-p/924048#M10755</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-12T03:26:56Z</dc:date>
    </item>
  </channel>
</rss>

