<?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: Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314837#M16584</link>
    <description>Thanks Jacob for your help,&lt;BR /&gt;what i really need though is the 95% of the bmi value... i.e: the lowest risk bmi value is 30, what is the 95% of that value? not the 95% CI of the estimate (HR or OR). because the spline analysis provides the lowest value, but is just a single value and no parameters of dispersion are provided...&lt;BR /&gt;the following paper states using STATA and they were able to calculate the 95% CI doing bootstrapping.. &lt;A href="http://jamanetwork.com/journals/jama/fullarticle/2520627" target="_blank"&gt;http://jamanetwork.com/journals/jama/fullarticle/2520627&lt;/A&gt;&lt;BR /&gt;thanks for your help</description>
    <pubDate>Mon, 28 Nov 2016 15:15:14 GMT</pubDate>
    <dc:creator>PabloLamelas</dc:creator>
    <dc:date>2016-11-28T15:15:14Z</dc:date>
    <item>
      <title>Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314735#M16578</link>
      <description>&lt;P&gt;I'm studying the association between body mass index (BMI) and mortality in different cohorts. I´ve been running multivariable cox model restricted cubic splines using the macro &lt;SPAN&gt;lgtphcurv9&amp;nbsp;&lt;/SPAN&gt;(&lt;A href="https://cdn1.sph.harvard.edu/wp-content/uploads/sites/271/2012/09/lgtphcurv9_7-3-2011.pdf" target="_blank"&gt;https://cdn1.sph.harvard.edu/wp-content/uploads/sites/271/2012/09/lgtphcurv9_7-3-2011.pdf&lt;/A&gt;) to plot the association between BMI and mortality, which is u-shaped. I'm interested in the lowest risk BMI value and its 95% confidence interval. To get the lowest risk value, I just went to the output table which provides a long table with all the BMI values and the estimate (HR, which then is plotted in a figure), and record the lowest risk value. However, I'm&amp;nbsp;struggling in getting 95% confidence intervals of this value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that doing bootstrapping can be an option to create this 95% CI, but I dont know how to run bootstrapping through this macro...&lt;/P&gt;&lt;P&gt;can anybody help me with this?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Pablo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 05:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314735#M16578</guid>
      <dc:creator>PabloLamelas</dc:creator>
      <dc:date>2016-11-28T05:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314739#M16579</link>
      <description>&lt;P&gt;&amp;nbsp;Bootstrapping involves selecting Subsamples and running it through the macro and collecting the parameter estimates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually I would recommend David Cassells paper - Don't be loopy, but without knowing your macro in detail (I'm not going to read 50+ pages) I'm not sure it can handle BY group processing. If it can, read Davids paper and follow that method otherwise, you can use the method not recommended in his paper, creating a macro that samples, calls the macro and collects the results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 06:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314739#M16579</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-28T06:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314780#M16582</link>
      <description>&lt;P&gt;You dont need bootstrapping. The confidence intervals can be calculated with use of the effect-statement, and the PROC PLM, which should be used after running phreg. Its quite easy, as this example shows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*first generate some data;&lt;BR /&gt;data mydata;
  do i=1 to 10000;
    bmi=rand('uniform',0,10);
	time=rand('exponential',exp(-sin(bmi)));
	output;
  end;
run;&lt;BR /&gt;&lt;BR /&gt;*estimate the spline, and store the result file;
proc phreg data=mydata;
  effect myspline=spline(bmi / knotmethod=list(1,2,3,4,5,6,7,8,9) naturalcubic);
  model time=myspline;
  store result;
run;&lt;BR /&gt;&lt;BR /&gt;*generate the number of bmi-values where the values should be calcuated;
data template;
  do bmi=0 to 10 by 0.01;
  output;
  end;
run;&lt;BR /&gt;&lt;BR /&gt;*then calculate the curve;
proc plm restore=result;
  score data=template out=predicted predicted=predicted lclm=lclm uclm=uclm;
run;&lt;BR /&gt;&lt;BR /&gt;*transform to hazard-ratio scale ;
data predicted;
  set predicted;
  exppredicted=exp(predicted);
  explclm=exp(lclm);
  expuclm=exp(uclm);
  y=exp(sin(bmi));
ruN;&lt;BR /&gt;&lt;BR /&gt;*plot it!;
symbol1 i=join l=1 v=none color=black;
symbol2 i=join l=2 v=none color=black;
symbol3 i=join l=2 v=none color=black;
symbol4 i=join l=1 v=none color=red;
proc gplot data=predicted;
  plot (exppredicted explclm expuclm y)*bmi/overlay;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Nov 2016 10:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314780#M16582</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-11-28T10:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314837#M16584</link>
      <description>Thanks Jacob for your help,&lt;BR /&gt;what i really need though is the 95% of the bmi value... i.e: the lowest risk bmi value is 30, what is the 95% of that value? not the 95% CI of the estimate (HR or OR). because the spline analysis provides the lowest value, but is just a single value and no parameters of dispersion are provided...&lt;BR /&gt;the following paper states using STATA and they were able to calculate the 95% CI doing bootstrapping.. &lt;A href="http://jamanetwork.com/journals/jama/fullarticle/2520627" target="_blank"&gt;http://jamanetwork.com/journals/jama/fullarticle/2520627&lt;/A&gt;&lt;BR /&gt;thanks for your help</description>
      <pubDate>Mon, 28 Nov 2016 15:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314837#M16584</guid>
      <dc:creator>PabloLamelas</dc:creator>
      <dc:date>2016-11-28T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314839#M16585</link>
      <description>&lt;P&gt;Thanks Reeza,&lt;/P&gt;&lt;P&gt;can you provide more details to find Davis paper?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;pablo&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314839#M16585</guid>
      <dc:creator>PabloLamelas</dc:creator>
      <dc:date>2016-11-28T15:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get confidence intervals of restricted cubic splines nadir value (lowest risk of the predictor)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314871#M16586</link>
      <description>&lt;P&gt;The paper you're referencing was for SAS 9.1 which is at least a decade old. It looks like,the functionality desired regarding cox regression model with spline has been implemented in SAS now. I would review Jacobs answer and assume that he's correct over my answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re finding the paper, search at Lexjansen.com, in general you can find a paper there on almost any SAS topic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 16:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Get-confidence-intervals-of-restricted-cubic-splines-nadir-value/m-p/314871#M16586</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-28T16:14:29Z</dc:date>
    </item>
  </channel>
</rss>

