<?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: multiple imputation code in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732655#M35556</link>
    <description>&lt;P&gt;The imputation method will depend on the missing data pattern and the variable type.&amp;nbsp; This table from the documentation will be helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mi_details05.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mi_details05.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is not a way to get a combined ROC curve directly using multiple imputation.&lt;/P&gt;
&lt;P&gt;You can however get a combined estimate of the C-statistic as the area under the ROC curve.&amp;nbsp; Below is an example that shows how you might code this.&lt;/P&gt;
&lt;P&gt;data roc;&lt;BR /&gt;input alb tp totscore popind @@;&lt;BR /&gt;totscore = 10 - totscore;&lt;BR /&gt;datalines;&lt;BR /&gt;3.0 5.8 10 0 3.2 6.3 5 1 3.9 6.8 3 1 2.8 4.8 6 0 &lt;BR /&gt;3.2 5.8 3 . 0.9 4.0 5 0 2.5 5.7 8 0 1.6 5.6 5 1 &lt;BR /&gt;3.8 5.7 5 1 3.7 6.7 6 1 3.2 5.4 4 1 3.8 6.6 6 1 &lt;BR /&gt;4.1 6.6 5 1 3.6 5.7 5 1 4.3 7.0 4 1 3.6 6.7 4 . &lt;BR /&gt;2.3 4.4 6 1 4.2 7.6 4 0 4.0 6.6 6 0 3.5 5.8 6 1 &lt;BR /&gt;3.8 6.8 7 1 3.0 4.7 8 0 4.5 7.4 5 1 3.7 7.4 5 1 &lt;BR /&gt;3.1 6.6 6 1 4.1 8.2 6 1 4.3 7.0 5 1 4.3 6.5 4 1 &lt;BR /&gt;3.2 5.1 5 1 2.6 4.7 6 1 3.3 6.8 6 0 1.7 4.0 7 0 &lt;BR /&gt;3.7 6.1 5 1 3.3 6.3 7 1 4.2 7.7 6 1 3.5 6.2 5 1 &lt;BR /&gt;2.9 5.7 9 0 2.1 4.8 7 1 2.8 6.2 8 0 4.0 7.0 7 1 &lt;BR /&gt;3.3 5.7 6 1 3.7 6.9 5 . 3.6 6.6 5 1 &lt;BR /&gt;;&lt;BR /&gt;proc mi data=roc out=mi_roc;&lt;BR /&gt;class popind;&lt;BR /&gt;var alb tp totscore popind;&lt;BR /&gt;monotone logistic;&lt;BR /&gt;run;&lt;BR /&gt;proc logistic data=mi_roc;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ROCAssociation=roc_ds(where=(ROCMODEL='Model'));&lt;BR /&gt;model popind(event='0') = alb tp totscore;&lt;BR /&gt;roc;&lt;BR /&gt;run;&lt;BR /&gt;proc mianalyze data=roc_ds;&lt;BR /&gt;modeleffects area;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 21:17:55 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2021-04-09T21:17:55Z</dc:date>
    <item>
      <title>multiple imputation code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732389#M35545</link>
      <description>&lt;P&gt;Hi SAS experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a beginner, planning to do multiple imputations for a data set.&lt;/P&gt;&lt;P&gt;The data has the following variables ( both continuous and categorical); age, gender, education level, blood pressure, body weight index, cholesterol., mean daily steps, genotype, and outcome of dementia.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the variables including the outcome, have got missing values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do share what type of multiple imputations I have to go with along with the codes&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( the primary aim is to validate a prediction model, i.e. to find how well the variables predict the outcome of dementia, done by finding the ROC curve!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the missing pattern table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 03:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732389#M35545</guid>
      <dc:creator>Gopi2</dc:creator>
      <dc:date>2021-04-09T03:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiple imputation code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732401#M35547</link>
      <description>&lt;P&gt;Please review the attached PDF file on Missing value imputation.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 05:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732401#M35547</guid>
      <dc:creator>gcjfernandez</dc:creator>
      <dc:date>2021-04-09T05:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: multiple imputation code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732655#M35556</link>
      <description>&lt;P&gt;The imputation method will depend on the missing data pattern and the variable type.&amp;nbsp; This table from the documentation will be helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mi_details05.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_mi_details05.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is not a way to get a combined ROC curve directly using multiple imputation.&lt;/P&gt;
&lt;P&gt;You can however get a combined estimate of the C-statistic as the area under the ROC curve.&amp;nbsp; Below is an example that shows how you might code this.&lt;/P&gt;
&lt;P&gt;data roc;&lt;BR /&gt;input alb tp totscore popind @@;&lt;BR /&gt;totscore = 10 - totscore;&lt;BR /&gt;datalines;&lt;BR /&gt;3.0 5.8 10 0 3.2 6.3 5 1 3.9 6.8 3 1 2.8 4.8 6 0 &lt;BR /&gt;3.2 5.8 3 . 0.9 4.0 5 0 2.5 5.7 8 0 1.6 5.6 5 1 &lt;BR /&gt;3.8 5.7 5 1 3.7 6.7 6 1 3.2 5.4 4 1 3.8 6.6 6 1 &lt;BR /&gt;4.1 6.6 5 1 3.6 5.7 5 1 4.3 7.0 4 1 3.6 6.7 4 . &lt;BR /&gt;2.3 4.4 6 1 4.2 7.6 4 0 4.0 6.6 6 0 3.5 5.8 6 1 &lt;BR /&gt;3.8 6.8 7 1 3.0 4.7 8 0 4.5 7.4 5 1 3.7 7.4 5 1 &lt;BR /&gt;3.1 6.6 6 1 4.1 8.2 6 1 4.3 7.0 5 1 4.3 6.5 4 1 &lt;BR /&gt;3.2 5.1 5 1 2.6 4.7 6 1 3.3 6.8 6 0 1.7 4.0 7 0 &lt;BR /&gt;3.7 6.1 5 1 3.3 6.3 7 1 4.2 7.7 6 1 3.5 6.2 5 1 &lt;BR /&gt;2.9 5.7 9 0 2.1 4.8 7 1 2.8 6.2 8 0 4.0 7.0 7 1 &lt;BR /&gt;3.3 5.7 6 1 3.7 6.9 5 . 3.6 6.6 5 1 &lt;BR /&gt;;&lt;BR /&gt;proc mi data=roc out=mi_roc;&lt;BR /&gt;class popind;&lt;BR /&gt;var alb tp totscore popind;&lt;BR /&gt;monotone logistic;&lt;BR /&gt;run;&lt;BR /&gt;proc logistic data=mi_roc;&lt;BR /&gt;by _imputation_;&lt;BR /&gt;ods output ROCAssociation=roc_ds(where=(ROCMODEL='Model'));&lt;BR /&gt;model popind(event='0') = alb tp totscore;&lt;BR /&gt;roc;&lt;BR /&gt;run;&lt;BR /&gt;proc mianalyze data=roc_ds;&lt;BR /&gt;modeleffects area;&lt;BR /&gt;stderr stderr;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 21:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/732655#M35556</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2021-04-09T21:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: multiple imputation code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/733164#M35577</link>
      <description>thanks will try to do this</description>
      <pubDate>Tue, 13 Apr 2021 01:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/733164#M35577</guid>
      <dc:creator>Gopi2</dc:creator>
      <dc:date>2021-04-13T01:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: multiple imputation code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/733165#M35578</link>
      <description>thanks will try to do this and reply back if it worked</description>
      <pubDate>Tue, 13 Apr 2021 01:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/733165#M35578</guid>
      <dc:creator>Gopi2</dc:creator>
      <dc:date>2021-04-13T01:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: multiple imputation code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/746394#M36342</link>
      <description>&lt;P&gt;finally, the code below gave me the required imputation. thanks all!&lt;/P&gt;&lt;P&gt;I used multiple imputation with Fully&amp;nbsp; conditional specification (FCS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mi data= data minimum = 0 0 0 0 MINMAXITER=100 nimpute=10 out= imuputed_data ;&lt;BR /&gt;var&amp;nbsp; (variables);&lt;BR /&gt;fcs plots=trace(mean std);&lt;/P&gt;&lt;P&gt;fcs discrim( categorical variables) /classeffects=include) nbiter =100 ;&lt;BR /&gt;fcs reg (continuous variables) nbiter =100 ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mini function was used in some to prevent getting some negative minimum values. minmaxter is to re-imupute if the system gets a negative ( or any avoided number in minimum)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 05:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-imputation-code/m-p/746394#M36342</guid>
      <dc:creator>Gopi2</dc:creator>
      <dc:date>2021-06-08T05:16:08Z</dc:date>
    </item>
  </channel>
</rss>

