Programming the statistical procedures from SAS

Missing values note after running proc logistic

Reply
Regular Contributor
Posts: 173

Missing values note after running proc logistic

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

SAS Super FREQ
Posts: 3,319

Missing values note after running proc logistic

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/

Ask a Question
Discussion stats
  • 1 reply
  • 692 views
  • 0 likes
  • 2 in conversation