Changeset 21816 in main


Ignore:
Timestamp:
10/16/20 18:01:43 (11 days ago)
Author:
Paul Leo
Message:

Hawaii IBIS v2.3 PRAMS back-end .def and .sas programs
Correcting most, if not all issues with rounding and cell suppression.
Improving a comment in the code, preventing divide by zero
Still have questions though:
1) need to verify cell suppression rules
2) need to verify Statistical Stability output rules, and possibly the data_notes section describing the Statistical Stability output rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • adopters/hi/branches/2.3/src/main/backend_qModules/prams/SurveyCrudeRate.sas

    r21801 r21816  
    177177data tmp4;
    178178  set tmp2 tmp1;
    179   f=log(mean)-log(1-mean); 
    180   s=stderr/(mean*(1-mean));
    181   Lf=f-1.96*s; 
    182   Uf=f+1.96*s; 
    183   percent=mean*100;
    184   lower=(exp(Lf)/(1+exp(Lf)))*100;   
    185   upper=(exp(Uf)/(1+exp(Uf)))*100;
     179        if mean >0 then do;
     180                f=log(mean)-log(1-mean); 
     181                s=stderr/(mean*(1-mean));
     182                Lf=f-1.96*s; 
     183                Uf=f+1.96*s; 
     184                percent=mean*100;
     185          lower=(exp(Lf)/(1+exp(Lf)))*100;   
     186          upper=(exp(Uf)/(1+exp(Uf)))*100;
     187  end;
    186188  drop f s Lf Uf VarName;
    187189  proc sort data=tmp4; by %cross1%
Note: See TracChangeset for help on using the changeset viewer.