<?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: Proc transreg in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709389#M34346</link>
    <description>&lt;P&gt;Sorry, but I do not understand. Do you have a reference (textbook? journal article?) that provides details?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am giving up. Perhaps someone else will be able to help you. Good luck.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 11:15:32 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-01-05T11:15:32Z</dc:date>
    <item>
      <title>Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708025#M34276</link>
      <description>&lt;P&gt;Can you help how to write the design matrix to a SAS data set using proc transreg to obtain a basis spline function and also how to specify an interaction between spline(x) and a variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 02:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708025#M34276</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2020-12-24T02:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708042#M34277</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_transreg_details06.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_transreg_details06.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_transreg_details28.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_transreg_details28.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 05:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708042#M34277</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-12-24T05:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708066#M34278</link>
      <description>&lt;P&gt;If you are willing to use PROC GLMSELECT instead of TRANSREG, see&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2020/06/08/interactions-spline-regression.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/06/08/interactions-spline-regression.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 11:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708066#M34278</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-12-24T11:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708159#M34281</link>
      <description>Thanks Rick, I have seen the blog and it is very helpful. Also, have seen your other blog on "visualize a regression with spline". First, I would like to output the design matrix to sas dataset using spline function (aim is to get the weighting function - not the spline effects) and then run the interaction with spline(x). I found the effect statement not helpful to do this. Can you suggest codes how to do it using proc GLMSELECT/TRASNREG?</description>
      <pubDate>Fri, 25 Dec 2020 02:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708159#M34281</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2020-12-25T02:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708181#M34282</link>
      <description>&lt;P&gt;I don't know what "&lt;SPAN&gt;get the weighting function" means. If you post some example data and state what you are hoping to get, that would be helpful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 11:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708181#M34282</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-12-25T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708369#M34295</link>
      <description>Thanks again, Rick. The aim is to model the cumulative effects of a time-varying exposure as the weighted sum of past doses (e.g. past 5 years exposures)- a weighted cumulative exposure. In this method, weights, will be modeled with cubic regression B-splines. I.e., the spline basis functions will represent the weighting function.</description>
      <pubDate>Sun, 27 Dec 2020 23:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708369#M34295</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2020-12-27T23:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708999#M34324</link>
      <description>&lt;P&gt;You still haven't posted data. From what you've said, it sounds like you want to run a two-step process. First, model the weights and score that model at the time points in your data. Then, run the regression and use the WEIGHT statement to use the weights from the first step.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 13:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/708999#M34324</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-01T13:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709348#M34341</link>
      <description>&lt;P&gt;Happy New Year Rick, find below sample data - for each ID, the exposure time points and dose in the last 5 years -&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID exposure_time_yr dose $;
cards;
1   0.1  15 
1   0.4  7.5
1   1.9  10
1   2    100
1   3.1  100
1   3.8  10
1   3.9  140
1   4.1  140
1   4.8  50
2   0.1 75
2   0.5  150
2   0.2  75
2   0.2  50
2   0.3 75
2   0.3 150
2   0.4  25
2   0.5  225
2   1    25
2   3.5  200
2   4.5  200
3   0.4  5
3   1.5  20
3   2.1  25
3   3    200
3   4.9  100

;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jan 2021 00:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709348#M34341</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2021-01-05T00:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709351#M34342</link>
      <description>&lt;P&gt;1. Why is dose a character variable? I'll assume that is a mistake.&lt;/P&gt;
&lt;P&gt;2. How are you using the ID variable in the model?&lt;/P&gt;
&lt;P&gt;3. Where is the weighting variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still don't know what you are trying to accomplish. Can you sketch what you want? Are we supposed to be fitting some line or curves to the following scatter plot?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
 scatter y=exposure_time_yr x=dose / group=ID markerattrs=(symbol=CircleFilled size=12);&lt;BR /&gt;run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jan 2021 00:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709351#M34342</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-05T00:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709354#M34344</link>
      <description>&lt;P&gt;Yes, the dose is not a character!&lt;/P&gt;&lt;P&gt;As mentioned in&amp;nbsp; the previous threads,&amp;nbsp; I wanted the weighted sum&amp;nbsp;of pas does over a 5-year window -&amp;nbsp;the data shows the dose exposure and time points over 5 year for each ID. Weights, will be modeled with cubic regression B-splines. I.e., the spline basis functions will represent the weighting function.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 01:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709354#M34344</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2021-01-05T01:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709355#M34345</link>
      <description>&lt;P&gt;&lt;SPAN&gt;* the weighted sum&amp;nbsp;of past doses over a 5-year window&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 01:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709355#M34345</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2021-01-05T01:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709389#M34346</link>
      <description>&lt;P&gt;Sorry, but I do not understand. Do you have a reference (textbook? journal article?) that provides details?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am giving up. Perhaps someone else will be able to help you. Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 11:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709389#M34346</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-05T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709390#M34347</link>
      <description>&lt;P&gt;Define what you mean by "weights." Look at examples of the WEIGHT statement in regression procs. Is that what you mean? Or do you mean regression coefficients? The TRANSREG documentation has examples of scoring as do many other procedures.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 11:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709390#M34347</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2021-01-05T11:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709402#M34351</link>
      <description>&lt;P&gt;Thanks Rick, here is the link for the paper that I am referring to :&lt;/P&gt;&lt;P&gt;&lt;A href="https://journals.sagepub.com/doi/10.1177/0962280220902179" target="_blank"&gt;Modeling of cumulative effects of time-varying drug exposures on within-subject changes in a continuous outcome - Coraline Danieli, Therese Sheppard, Ruth Costello, William G Dixon, Michal Abrahamowicz, 2020 (sagepub.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 12:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709402#M34351</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2021-01-05T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transreg</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709405#M34352</link>
      <description>&lt;P&gt;In the paper mentioned above, " the weight function assigns the differential importance weights to past doses, depending on the time elapsed since the dose was taken" - weighted according to their relative proximity in time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 12:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-transreg/m-p/709405#M34352</guid>
      <dc:creator>Abimal_Zippi</dc:creator>
      <dc:date>2021-01-05T12:40:13Z</dc:date>
    </item>
  </channel>
</rss>

