Changeset 20761 in main
 Timestamp:
 06/09/20 19:13:51 (4 weeks ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

adopters/hi/branches/2.3/src/main/backend_qModules/prams/SurveyCrudeRateNoVarLevel.sas
r18257 r20761 157 157 data tmp4; 158 158 set tmp2; 159 f=log(mean)log(1mean); 160 s=stderr/(mean*(1mean)); 161 Lf=f1.96*s; 162 Uf=f+1.96*s; 163 percent=mean*100; 164 lower=(exp(Lf)/(1+exp(Lf)))*100; 165 upper=(exp(Uf)/(1+exp(Uf)))*100; 159 if mean >0 then do; 160 f=log(mean)log(1mean); 161 s=stderr/(mean*(1mean)); 162 Lf=f1.96*s; 163 Uf=f+1.96*s; 164 percent=mean*100; 165 lower=(exp(Lf)/(1+exp(Lf)))*100; 166 upper=(exp(Uf)/(1+exp(Uf)))*100; 167 end; 166 168 drop f s Lf Uf VarName; 167 169 proc sort data=tmp4; by %cross1% … … 260 262 261 263 redflag=put('Stable', $14.); 264 262 265 if rse>.3 then redflag=put('Unstable', $14.); 263 266 if rse>.5 then redflag=put('Very Unstable', $14.); … … 270 273 AND if numerator is less than 50, then set to 50 271 274 */ 275 276 272 277 If 0<sum<50 then sum=50; 273 278 else if sum >= 50 then sum=ROUND(sum,100); 274 279 If 0<wgtsum<50 then wgtsum=50; 275 280 else if wgtsum >= 50 then wgtsum=ROUND(wgtsum,100); 276 281 277 282 proc sort data=tmp7; by %cross1% &varname. 278 283 ; … … 287 292 data tmp; 288 293 set tmp7; 289 290 if (SampleN<30) OR (rse >.3) then do; /* Hawaii cell supression Rule */ 294 if (SampleN<30) OR (rse >.3) then do; /* Hawaii cell supression Rule */ 291 295 percent = .A; 292 296 lower = .A; … … 296 300 redflag=put('Not Reportable', $14.); 297 301 end; 298 302 299 303 proc print data=tmp; title2 'final tmp: Convert values for cell suppression'; 300 304 run;
Note: See TracChangeset
for help on using the changeset viewer.