<?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 Confidence Intervals for OR using units statement in proc surveylogistic problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533450#M146252</link>
    <description>&lt;P&gt;Hello and thank you for your willingness to help! I am analyzing a complex survey with a dichotomous outcome, categorical covariates, and continuous predictors of interest. I have three groups of people which I am comparing the computed ORs and 95% CIs between and specifically, I want to see the ORs and 95% CIs for a 10-unit change in the continuous predictors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a breakdown of my variables:&lt;/P&gt;&lt;P&gt;biling2 = a three level categorical variable of the three groups I wish to compare (english speaking, spanish speaking, bilingual)&lt;/P&gt;&lt;P&gt;policy_score, shs_score, harm_score, product_score = continuous predictors of interest from 1 to 100 which I wish to view as a 10-unit change rather than a single-unit change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am attempting to run in SAS 9.4:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveylogistic data=data1;
	weight	weight2;
	class	age3c (ref='18 to 29') female poverty ppeducat / param=ref;
	model 	anytobacco (event='1') = age3c female poverty ppeducat policy_score shs_score harm_score product_score / clodds=wald;
	domain 	biling2;
	format 	biling2 bilingf. age3c age3cf. ppeducat ppeducatf.;
	units 	policy_score = 10 shs_score = 10 harm_score = 10 product_score = 10;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following:&lt;/P&gt;&lt;P&gt;Error 73-322: Expecting an OFFSET.&lt;/P&gt;&lt;P&gt;Error: Variable WALD not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the =wald from the clodds statement the code runs fine, but then my OR is not centered in the 95% CIs that are output. I'm unsure what is going on and any help you can provide would be greatly appreciated! I tried to include enough information, but also not overburden the post. If you need more info I am more than happy to provide it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 23:48:03 GMT</pubDate>
    <dc:creator>morgbri</dc:creator>
    <dc:date>2019-02-06T23:48:03Z</dc:date>
    <item>
      <title>Confidence Intervals for OR using units statement in proc surveylogistic problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533450#M146252</link>
      <description>&lt;P&gt;Hello and thank you for your willingness to help! I am analyzing a complex survey with a dichotomous outcome, categorical covariates, and continuous predictors of interest. I have three groups of people which I am comparing the computed ORs and 95% CIs between and specifically, I want to see the ORs and 95% CIs for a 10-unit change in the continuous predictors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a breakdown of my variables:&lt;/P&gt;&lt;P&gt;biling2 = a three level categorical variable of the three groups I wish to compare (english speaking, spanish speaking, bilingual)&lt;/P&gt;&lt;P&gt;policy_score, shs_score, harm_score, product_score = continuous predictors of interest from 1 to 100 which I wish to view as a 10-unit change rather than a single-unit change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am attempting to run in SAS 9.4:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveylogistic data=data1;
	weight	weight2;
	class	age3c (ref='18 to 29') female poverty ppeducat / param=ref;
	model 	anytobacco (event='1') = age3c female poverty ppeducat policy_score shs_score harm_score product_score / clodds=wald;
	domain 	biling2;
	format 	biling2 bilingf. age3c age3cf. ppeducat ppeducatf.;
	units 	policy_score = 10 shs_score = 10 harm_score = 10 product_score = 10;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following:&lt;/P&gt;&lt;P&gt;Error 73-322: Expecting an OFFSET.&lt;/P&gt;&lt;P&gt;Error: Variable WALD not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the =wald from the clodds statement the code runs fine, but then my OR is not centered in the 95% CIs that are output. I'm unsure what is going on and any help you can provide would be greatly appreciated! I tried to include enough information, but also not overburden the post. If you need more info I am more than happy to provide it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 23:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533450#M146252</guid>
      <dc:creator>morgbri</dc:creator>
      <dc:date>2019-02-06T23:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence Intervals for OR using units statement in proc surveylogistic problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533472#M146264</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Error: Variable WALD not found&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is pretty&amp;nbsp;clear isn't&amp;nbsp;it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You try to use a variable that does not exist.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 02:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533472#M146264</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-07T02:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence Intervals for OR using units statement in proc surveylogistic problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533540#M146294</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168121"&gt;@morgbri&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveylogistic_syntax12.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.surveylogistic.surveylogisticclodds" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; the option is just CLODDS. There are no suboptions of the form "CLODDS=&lt;EM&gt;type-of-CI&lt;/EM&gt;." This is the reason for the error messages you got.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason why your "&lt;SPAN&gt;OR is not centered in the 95% CIs" can be found in section &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveylogistic_details40.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.surveylogistic.surveylogisticore" target="_blank" rel="noopener"&gt;Odds Ratio Estimation&lt;/A&gt; of the documentation. There it says: "Confidence intervals for the odds ratios are obtained by exponentiating the corresponding confidence intervals for the log odd ratios." So, the &lt;EM&gt;logarithm&lt;/EM&gt; of the odds ratio estimate should be centered between the &lt;EM&gt;logarithms&lt;/EM&gt; of the lower and upper confidence limit. See &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveylogistic_examples01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.surveylogistic.svlex2c" target="_blank" rel="noopener"&gt;Output 114.1.5&lt;/A&gt; in example&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveylogistic_examples01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;114.1 Stratified Cluster Sampling&lt;/A&gt;&amp;nbsp;where exactly this is the case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 09:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533540#M146294</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-02-07T09:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence Intervals for OR using units statement in proc surveylogistic problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533765#M146385</link>
      <description>&lt;P&gt;Wald is not a variable, it's a type of confidence interval calculation. It's one of the options for calculating confidence limits for your odds ratios - wald or profile likelihood.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 22:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533765#M146385</guid>
      <dc:creator>morgbri</dc:creator>
      <dc:date>2019-02-07T22:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Confidence Intervals for OR using units statement in proc surveylogistic problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533768#M146387</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;! I was looking at the documentation, but must have been on a different page because I saw the two options (pl or wald) still listed. This is very helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know asymmetric confidence intervals are usually a byproduct of transformations, but thought it was weird my OR was centered in the CI for a one-unit increase in odds, but then not for the ten-unit increase calculation. I look more closely at the page you linked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you for the insight/info!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 22:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Confidence-Intervals-for-OR-using-units-statement-in-proc/m-p/533768#M146387</guid>
      <dc:creator>morgbri</dc:creator>
      <dc:date>2019-02-07T22:10:03Z</dc:date>
    </item>
  </channel>
</rss>

