<?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: CV for ridge regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987907#M49445</link>
    <description>Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Wed, 13 May 2026 19:40:28 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2026-05-13T19:40:28Z</dc:date>
    <item>
      <title>CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987645#M49419</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Expert! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm wondering how to perform a 10-fold cross-validation to retrieve the parameter for Ridge regression. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Indeed, when I apply this code :&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data=train plots=all;
	model Y= X1 X2 X3 /
		selection=elasticnet(choose=cv  l1=0 l2search=grid stop=l1)
		cvmethod=split(10);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;The Ridge shrinkage criterion is not displayed in the output.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2026 19:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987645#M49419</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-09T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987649#M49420</link>
      <description>You could use RIDGE= option of PROC REG to perform ridge regression, check Rick's blog:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/03/20/compute-ridge-regression.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/03/20/compute-ridge-regression.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;About CV you could write your own code , check my code:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Science/10-fold-corss-validation/m-p/366193" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Science/10-fold-corss-validation/m-p/366193&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-do-k-fold-CV-with-replacements-replication/m-p/303938" target="_blank"&gt;https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-do-k-fold-CV-with-replacements-replication/m-p/303938&lt;/A&gt;</description>
      <pubDate>Sun, 10 May 2026 02:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987649#M49420</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-10T02:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987654#M49421</link>
      <description>&lt;P&gt;Thank you, Ksharp!&lt;BR /&gt;It's certain that I cannot perform automatic Ridge cross-validation in SAS, right? &lt;SPAN&gt;Is there an existing macro that performs K-folds Ridge cross-validation?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2026 18:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987654#M49421</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-10T18:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987682#M49422</link>
      <description>" I cannot perform automatic Ridge cross-validation in SAS,"&lt;BR /&gt;I think so. But maybe some expert of sas could know something new .&lt;BR /&gt;&lt;BR /&gt;"Is there an existing macro that performs K-folds Ridge cross-validation?"&lt;BR /&gt;You could replace PROC LOGISTIC in my code with PROC REG + RIDGE= option and get what you need .&lt;BR /&gt;</description>
      <pubDate>Mon, 11 May 2026 06:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987682#M49422</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-11T06:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987683#M49423</link>
      <description>Thank you, but for Ridge regression it's more complicated: I need to vary lambda and compare PRESS.</description>
      <pubDate>Mon, 11 May 2026 07:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987683#M49423</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-11T07:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987687#M49424</link>
      <description>&lt;P&gt;OK. Check the following code was what you are looking for ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data acetyl;
input x1-x4 @@;
x1x2 = x1 * x2;
x1x1 = x1 * x1;
datalines;
1300  7.5 0.012 49   1300  9   0.012  50.2 1300 11 0.0115 50.5
1300 13.5 0.013 48.5 1300 17   0.0135 47.5 1300 23 0.012  44.5
1200  5.3 0.04  28   1200  7.5 0.038  31.5 1200 11 0.032  34.5
1200 13.5 0.026 35   1200 17   0.034  38   1200 23 0.041  38.5
1100  5.3 0.084 15   1100  7.5 0.098  17   1100 11 0.092  20.5
1100 17   0.086 29.5
;
 


/****** K-Fold CV ****/
%macro k_fold_cv(k=);
filename score temp;

ods select none;

proc surveyselect data=acetyl group=&amp;amp;k out=have seed=123;
run;

%do i=1 %to &amp;amp;k ;
data training;
 set have(where=(groupid ne &amp;amp;i)) ;
run;
data test;
 set have(where=(groupid eq &amp;amp;i));
run;

proc reg data=training outest=b ridge=0.02 noprint;
   model x4=x1 x2 x3 x1x2 x1x1;
   code file=score residual ;
quit;

/*Score test data*/
data score;
set test;
%include score;
run;
/*Calculate PRESS*/
proc sql;
create table press as
select uss(R_x4)/count(*) as press from score;
quit;

data score&amp;amp;i;
 merge b(where=(_TYPE_='RIDGE') keep=_TYPE_ _RIDGE_) press;
 retain id &amp;amp;i ;
run;
%end;
data k_fold_cv;
 set score1-score&amp;amp;k;
run;

ods select all;
%mend;

%k_fold_cv(k=3)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2026 08:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987687#M49424</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-11T08:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987689#M49425</link>
      <description>Thank you, but here, the ridge is fixed: ridge = 0.02. We need to vary it and select the best model based on the ridge value.</description>
      <pubDate>Mon, 11 May 2026 08:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987689#M49425</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-11T08:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987693#M49426</link>
      <description>Sorry. I can't help you. It seems a tough task.&lt;BR /&gt;Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; could give you a hint.</description>
      <pubDate>Mon, 11 May 2026 09:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987693#M49426</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-11T09:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987696#M49427</link>
      <description>&lt;P&gt;I haven't done this myself, but there is an example in the GLMSELECT documentation that appears to use the ELASTICNET method to do what you want. Here are some links that I hope will be useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_glmselect_details12.htm" target="_blank"&gt;SAS Help Center: Elastic Net Selection (ELASTICNET)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_glmselect_syntax07.htm#statug.glmselect.glsselection" target="_blank"&gt;SAS Help Center: MODEL Statement&lt;/A&gt;&amp;nbsp;See the SELECTION=ELASTICNET method and the various "L2" options. The default search option for the optimal ridge parameter are L2LOW=0, L2HIGH=1,&amp;nbsp; L2STEPS=50, and L2SEARCH=GRID.&amp;nbsp; These look like good defaults to me.&lt;/LI&gt;
&lt;LI&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_glmselect_examples06.htm" target="_blank"&gt;SAS Help Center: Elastic Net and External Cross Validation&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 11 May 2026 09:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987696#M49427</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2026-05-11T09:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987699#M49428</link>
      <description>Rick,&lt;BR /&gt;OP used the method you are mentioned, check the first post.&lt;BR /&gt;OP want " Ridge shrinkage criterion" , but PROC GLMSELECT didn't display it .</description>
      <pubDate>Mon, 11 May 2026 10:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987699#M49428</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-11T10:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987701#M49429</link>
      <description>Perhaps in SAS, there is still an option that allows doing that without using a macro?..</description>
      <pubDate>Mon, 11 May 2026 10:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987701#M49429</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-11T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987789#M49430</link>
      <description>Thank you, Rick, but I cannot find the chosen l2search value in the output : ods output FitStatistics=fit;&lt;BR /&gt;ods output CriterionPanel=CriterionPanel;&lt;BR /&gt;ods output ModelInfo=ModelInfo;&lt;BR /&gt;ods output Dimensions=Dimensions;&lt;BR /&gt;ods output SelectionSummary=SelectionSummary;&lt;BR /&gt;ods output StopReason=StopReason;&lt;BR /&gt;ods output CoefficientPanel=CoefficientPanel;&lt;BR /&gt;ods output CriterionPanel=CriterionPanel;&lt;BR /&gt;ods output ASEPlot=ASEPlot;&lt;BR /&gt;ods output SelectedEffects=SelectedEffects;&lt;BR /&gt;ods output ANOVA=ANOVA;&lt;BR /&gt;ods output FitStatistics=FitStatistics;&lt;BR /&gt;ods output ParameterEstimates=ParameterEstimates;</description>
      <pubDate>Tue, 12 May 2026 09:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987789#M49430</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-12T09:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987793#M49431</link>
      <description>&lt;P&gt;I think the answer is in this paper:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PharmaSUG 2019 - Paper ST-059&lt;/P&gt;
&lt;P&gt;Regulation Techniques for Multicollinearity: Lasso, Ridge, and Elastic Nets&lt;/P&gt;
&lt;P&gt;Deanna Schreiber-Gregory, Henry M Jackson Foundation&lt;/P&gt;
&lt;P&gt;Karlen Bader, Henry M Jackson Foundation &lt;BR /&gt;&lt;A href="https://pharmasug.org/proceedings/2019/ST/PharmaSUG-2019-ST-059.pdf" target="_blank"&gt;https://pharmasug.org/proceedings/2019/ST/PharmaSUG-2019-ST-059.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(end of page 17 and start of page 18)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a good estimate of&amp;nbsp;&lt;SPAN&gt;L2&lt;/SPAN&gt;, you can specify the value in the L2= option. If you do not specify a value for&amp;nbsp;&lt;SPAN&gt;L2&lt;/SPAN&gt;, then by default PROC GLMSELECT searches for a value between 0 and 1 that is optimal according to the current CHOOSE= criterion. Figure 48.12 illustrates the estimation of the ridge regression parameter&amp;nbsp;&lt;SPAN&gt;L2&amp;nbsp;&lt;/SPAN&gt;(L2). Meanwhile, if you do not specify the CHOOSE= option, then the model at the final step in the selection process is selected for each&amp;nbsp;&lt;SPAN&gt;L2&amp;nbsp;&lt;/SPAN&gt;(L2), and the criterion value shown in the below figure is the one at the final step that corresponds to the specified STOP= option (STOP=SBC by default).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 13:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987793#M49431</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-05-12T13:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987794#M49432</link>
      <description>Hello Koen, &lt;BR /&gt;Thank you for your response, but I cannot find the chosen value L2SEARCH (the best L2) displayed in the output. Furthermore, figure 48.12 is not found in the indicated document.</description>
      <pubDate>Tue, 12 May 2026 13:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987794#M49432</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-12T13:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987796#M49433</link>
      <description>&lt;P&gt;That&amp;nbsp;&lt;BR /&gt;Figure 48.12 Estimation of the Ridge Regression Parameter 2 (L2) in the Elastic Net Method&lt;/P&gt;
&lt;P&gt;is in this document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/132/glmselect.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/onlinedoc/stat/132/glmselect.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;... in "Model Selection Issues" on p. 3713&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have just run a PROC GLMSELECT myself, but I cannot find it either.&lt;/P&gt;
&lt;P&gt;I think it's best to contact SAS Technical Support for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Technical Support (TS):&lt;BR /&gt;Here is a link for your convenience: &lt;A href="https://support.sas.com/en/technical-support.html#contact" target="_blank" rel="noopener"&gt;https://support.sas.com/en/technical-support.html#contact &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you’ve sorted it out or received a helpful reply from TS, it would be good to add the answer you were looking for to this topic-thread. Where or how can you find the best L2 value that was found by the Elastic Net Method?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 05:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987796#M49433</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-05-13T05:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987867#M49438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;&amp;nbsp;, you can&amp;nbsp;add&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statug/15.2/statug_glmselect_syntax07.htm#statug.glmselect.glsselection" target="_self"&gt;SHOWL2SEARCH&lt;/A&gt; in the selection= &lt;BR /&gt;to displays an elastic net parameter summary table, which shows the chosen values for the LASSO regularization parameter L1 and the ridge regularization parameter L2 (in the ratio scaling). This option is available only when you specify SELECTION=ELASTICNET. You can provide the corresponding L1 and L2 values back to PROC GLMSELECT by specifying SELECTION=ELASTICNET(STOP=L1 L1CHOICE=RATIO L1=&lt;SPAN class="aa-argument"&gt;L1 value&lt;/SPAN&gt;&amp;nbsp;L2=&lt;SPAN class="aa-argument"&gt;L2 value&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 14:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987867#M49438</guid>
      <dc:creator>YZ11</dc:creator>
      <dc:date>2026-05-13T14:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987869#M49439</link>
      <description>Hello YZ11,&lt;BR /&gt;Thank you, but I have this error :     selection=elasticnet(choose=cv  l1=0 l2search=grid stop=l1 l2=l2)&lt;BR /&gt;                                                                         __&lt;BR /&gt;                                                                         22&lt;BR /&gt;                                                                         202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant.  &lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.</description>
      <pubDate>Wed, 13 May 2026 15:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987869#M49439</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-13T15:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987875#M49440</link>
      <description>&lt;DIV&gt;This is caused by using &lt;CODE&gt;l2=l2&lt;/CODE&gt;. The &lt;CODE&gt;L2=&lt;/CODE&gt; option expects a numeric value, so you will specify something like &lt;CODE&gt;l2=0.2&lt;/CODE&gt;. If you have a good estimate for the L2 penalty, you can provide it directly using &lt;CODE&gt;L2=&lt;/CODE&gt;. If you do not specify &lt;CODE&gt;L2=&lt;/CODE&gt;, then by default PROC GLMSELECT searches for an optimal value between 0 and 1 according to the current &lt;CODE&gt;CHOOSE=&lt;/CODE&gt; criterion.&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 May 2026 15:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987875#M49440</guid>
      <dc:creator>YZ11</dc:creator>
      <dc:date>2026-05-13T15:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987879#M49441</link>
      <description>Thank you. My question was how to display the chosen lambda criterion.</description>
      <pubDate>Wed, 13 May 2026 16:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987879#M49441</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-05-13T16:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: CV for ridge regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987881#M49442</link>
      <description>&lt;P&gt;I have just done this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc glmselect data=sashelp.Leutrain 
               plots=coefficients;
   model y = x1-x4129/
   selection=elasticnet(choose=cv l1=0 l2search=grid stop=l1 SHOWL2SEARCH SHOWSTEPL1)
		     cvmethod=split(10);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I get (among many other output):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sbxkoenk_0-1778689996000.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114982iEA5D3D5D4A6D73C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sbxkoenk_0-1778689996000.png" alt="sbxkoenk_0-1778689996000.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think you want to see that value in the bottom of the table ("Chosen Value of L2").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 16:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CV-for-ridge-regression/m-p/987881#M49442</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-05-13T16:34:35Z</dc:date>
    </item>
  </channel>
</rss>

