BookmarkSubscribeRSS Feed
Ashwini_uci
Obsidian | Level 7

Hello,

I am getting this note:

Note:645 observations were deleted due to missing values for the response or explanatory variables.


after ruuning a proc logistic,

The code likes this:

proc logistic data =library.nismicathcabg4 descending ;

class   female  (ref= first) dm dmcx htn_c  aids alcohol ANEMDEF arth race1(ref=first)   ZIPINC_QRTL(ref=first) hosp_location h_contrl(ref=first) hosp_teach

bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc renlfail tumor

ulcer valve wghtloss cararrhythmia/param=ref;

model  died=  age female  dm dmcx htn_c  aids alcohol ANEMDEF arth race1 zipinc_qrtl hosp_location h_contrl hosp_teach  TOTAL_DISC

bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc renlfail tumor

ulcer valve wghtloss cararrhythmia;

where pcionly=1 and stemi=0;

weight discwt;

title 'Logi Reg in-hosp mortality vs gender in POST-PCI MI patients using "where" option with RACE +income for nonstemi with pcionly';

run;

quit;

I have checked all the variables for missing values and deleted the records that had missing values for all above mentioned explanatory variables,so the data is supposed to be complete...

But i am not sure why i keep getting this note..

Any idea? any suggestions?

Thanks much.

Ashwini

1 REPLY 1
Rick_SAS
SAS Super FREQ

It's not just the explanatory variables, but any variables listed in the CLASS stmt, the MODEL stmt, or the WEIGHT statement. To count the number of missing values in your variables, see this article: http://blogs.sas.com/content/iml/2011/09/19/count-the-number-of-missing-values-for-each-variable/

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 3500 views
  • 1 like
  • 2 in conversation