<?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: Help with analysis using SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490911#M72134</link>
    <description>&lt;P&gt;Sounds like you would like some guidance about how to design your study...not just the mechanics of running it in SAS, correct?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you already have sample data that shows what you expect to collect, I think the experts here can provide more help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all you are collecting is the measurements for people who have the surgery, then the approach is straightforward.&amp;nbsp; You're just calculating the differences across each measurement.&amp;nbsp; If there are other factors you're tracking that lead to something you're trying to predict, then the approach would be different.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 16:37:15 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2018-08-29T16:37:15Z</dc:date>
    <item>
      <title>Help with BMI outcome analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490908#M72133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to conduct a study where i am looking at BMI at screening, BMI at Operation day, BMI at 6 months post op and BMI at 12 months post-op. I want to see if patients who lost weight pre-op were able to sustain loss after surgery.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know how should i do that in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 19:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490908#M72133</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-08-29T19:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490911#M72134</link>
      <description>&lt;P&gt;Sounds like you would like some guidance about how to design your study...not just the mechanics of running it in SAS, correct?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you already have sample data that shows what you expect to collect, I think the experts here can provide more help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all you are collecting is the measurements for people who have the surgery, then the approach is straightforward.&amp;nbsp; You're just calculating the differences across each measurement.&amp;nbsp; If there are other factors you're tracking that lead to something you're trying to predict, then the approach would be different.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490911#M72134</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-08-29T16:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490912#M72135</link>
      <description>&lt;P&gt;The first thing you need to do is to post an example of your raw SAS data that you already have. After that we can show you ways to extract the information you are looking for. See my footnotes for hints how to post that example data.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490912#M72135</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-29T16:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490920#M72137</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;please see attached part of my data in excel.&lt;/DIV&gt;&lt;DIV&gt;I need to see if patients who were obese BMI&amp;gt;30 at sceening and lost weight at preop visit had sustained weight loss after the procedure.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490920#M72137</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-08-29T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490939#M72138</link>
      <description>&lt;P&gt;Please supply&amp;nbsp;&lt;EM&gt;SAS data&lt;/EM&gt;. Once again, see my footnotes.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 18:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490939#M72138</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-29T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490963#M72140</link>
      <description>&lt;P&gt;I converted the small spreadsheet to a program using a task I have from SAS Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
/*This program was generated from WORK.DATA */
DATA WORK.DATA;
	attrib Age 
		length=8
		format=BEST12. 
		informat=BEST12. ;
	attrib Sex 
		length=$1
		format=$CHAR1. 
		informat=$CHAR1. ;
	attrib Ethnicity 
		length=$12
		format=$CHAR12. 
		informat=$CHAR12. ;
	attrib Race 
		length=$24
		format=$CHAR24. 
		informat=$CHAR24. ;
	attrib Screening_BMI 
		length=8
		format=BEST12. 
		informat=BEST12. 
		label='Screening BMI' ;
	attrib PreOpBMI 
		length=8
		format=BEST12. 
		informat=BEST12. ;
	attrib BMI12_mo 
		length=8
		format=BEST12. 
		informat=BEST12. 
		label='BMI12 mo' ;
	attrib BMI24_mo 
		length=8
		format=BEST12. 
		informat=BEST12. 
		label='BMI24 &amp;nbsp;mo' ;
	attrib Creatinine_2_wkpost_op 
		length=8
		format=BEST12. 
		informat=BEST12. 
		label='Creatinine&amp;nbsp;2 wkpost-op' ;
	attrib EGFR_post_op 
		length=8
		format=BEST12. 
		informat=BEST12. 
		label='EGFR post op' ;
INFILE DATALINES DSD;
INPUT 
	Age
	Sex
	Ethnicity
	Race
	Screening_BMI
	PreOpBMI
	BMI12_mo
	BMI24_mo
	Creatinine_2_wkpost_op
	EGFR_post_op
	;
DATALINES4;
60,"M","Non-Hispanic","Caucasian (White)",29.9,29.8,27.8,28.1,1.63,57.35
45,"F","Non-Hispanic","Caucasian (White)",28.8,28.8,,,1.18,58.2
62,"M","Non-Hispanic","Unknown",25.1,25.1,,,1.35,58.47
60,"F","Non-Hispanic","African American (Black)",28.5,28.5,31.9,30.3,1.35,60
65,"F","Non-Hispanic","Other",26.5,26.8,26.9,,0.86,60
66,"F","Non-Hispanic","Asian",31,30.8,30.9,30.7,1.15,60
40,"F","Non-Hispanic","Caucasian (White)",27.8,27.8,28.7,29.7,1.2,48.32
48,"M","Non-Hispanic","Other",28,27.8,,,1.29,51.65
50,"F","Non-Hispanic","Caucasian (White)",30,29.4,28.2,28.8,1.62,35.79
;;;;
RUN;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;From your description, it looks like you're just testing for a simple condition.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;IF&amp;nbsp;&lt;/STRONG&gt;Screening_BMI &amp;gt; 30&amp;nbsp;&lt;STRONG&gt;THEN&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;if BMI_12mo&amp;nbsp;&lt;/STRONG&gt;&amp;lt;&amp;nbsp;&lt;SPAN&gt;Screening_BMI Then&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sustained_WeightLoss = 1 (true)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data result;
 set work.data;

 if missing(bmi12_mo) then sustained_wtLoss12 = .;
 else if screening_bmi &amp;gt;= 30
    and bmi12_mo &amp;lt; screening_bmi
  then sustained_wtLoss12 = 1;
  else sustained_wtLoss12 = 0;


 if missing(bmi24_mo) then sustained_wtLoss24 = .;
 else if screening_bmi &amp;gt;= 30
    and bmi24_mo &amp;lt; screening_bmi
  then sustained_wtLoss24 = 1;
  else sustained_wtLoss24 = 0;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 19:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490963#M72140</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-08-29T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490978#M72142</link>
      <description>&lt;P&gt;thank you very much. I understand what i need to do now.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 19:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/490978#M72142</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-08-29T19:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/491375#M72158</link>
      <description>&lt;P&gt;Kyra,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you have missing data in the BMIs.&amp;nbsp; The approach Chris provided is just one way to address missingness and may or may not be appropriate.&amp;nbsp; I'd suggest also reading about the types of missing data and approaches to address it.&amp;nbsp; Perhaps start with D. A. Newman's 2014 article in Organizational Research Methods (&amp;nbsp;&lt;A href="https://www.researchgate.net/publication/268686755_Missing_Data" target="_blank"&gt;https://www.researchgate.net/publication/268686755_Missing_Data&lt;/A&gt; ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doc Muhlbaier&lt;/P&gt;
&lt;P&gt;Duke&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 18:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/491375#M72158</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2018-08-30T18:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with analysis using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/491627#M72182</link>
      <description>&lt;P&gt;Thanks. I will look into the articles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 13:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-BMI-outcome-analysis-using-SAS/m-p/491627#M72182</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-08-31T13:28:55Z</dc:date>
    </item>
  </channel>
</rss>

