24.04.2014 Views

Pratique de Sas Windows ...9.3 Volume 2 - Ined

Pratique de Sas Windows ...9.3 Volume 2 - Ined

Pratique de Sas Windows ...9.3 Volume 2 - Ined

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.6.7 La probabilité <strong>de</strong>s estimates : comment produire directement sa page <strong>de</strong> rapport<br />

En reprenant la table <strong>de</strong>s probabilités Parameterestimates que je capture après sélection ainsi que celle<br />

contenant les infos sur les variables et les modalités y compris celles mises en référence ClasslevelInfo<br />

ods select Stat.Logistic.ParameterEstimates<br />

Stat.Logistic.ClasslevelInfo;<br />

ods output Stat.Logistic.ParameterEstimates=b.LogisticEst<br />

Stat.Logistic.ClasslevelInfo=b.LogisticModRef ;<br />

proc logistic data=b.d simple plots(only)=oddsratio;<br />

class trajloc (ref= "Tjrs urbain") echstab_tot(ref="En Frce et étranger")<br />

sexee (ref="Homme") sitfam(ref="Couple avec enfant")<br />

LT1AMI1(ref="pas voisin ami") lienmig(ref="Autre")echdouvc(ref="Commune")<br />

GRFAM(ref="Pas <strong>de</strong> famille") mproloc(ref="Autres") agepop(ref="18-35 ans")<br />

/param=ref ;<br />

weight poidsfc;<br />

mo<strong>de</strong>l glbio= sexee sitfam mproloc lienmig agepop echstab_tot trajloc<br />

echdouvc LT1AMI1 grfam<br />

/rsq link=logit alpha=0.05 clodds=wald ;<br />

run;<br />

ods select all;ods output close;<br />

On la retravaille en calculant la formule <strong>de</strong> p (à valoir plus loin) et on crée un indicateur visuel vp <strong>de</strong><br />

significativité à partir <strong>de</strong> la probabilité du Chi 2.<br />

data b.estimPR;<br />

set b.logisticest;retain intercept; ordre=_n_-1;<br />

If _n_=1 then do;p=1/(1+exp(-Estimate));<br />

intercept=estimate;variable ="_Intercept";<br />

end;<br />

if _n_>1 then p=1/(1+exp(-Intercept-Estimate));<br />

ppct=round(p*100,0.1);<br />

If abs(probchisq*100) >10.00 then vp="- ";<br />

else do;<br />

If abs(probchisq*100)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!