Probabilidade de Cobertura dos Intervalos de Confiança ... - Uem
Probabilidade de Cobertura dos Intervalos de Confiança ... - Uem
Probabilidade de Cobertura dos Intervalos de Confiança ... - Uem
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
B - Programa<br />
Para a geração <strong>dos</strong> da<strong>dos</strong>, processo <strong>de</strong> reamostragem e <strong>de</strong>terminação os estimadores <strong>de</strong><br />
máxima varossimilhança utilizou-se a macro apresentada a seguir.<br />
1 o p t i o n s nonotes n o d e t a i l s ;<br />
2<br />
3 %macro d e l e t a (n=,p=);<br />
4 data n u l l ;<br />
5 options NOXWAIT;<br />
Listagem 4.1: Programa SAS - Macro.<br />
6 c a l l system (” d e l c : \ emv o &n&p . . dat ” ) ;<br />
7 c a l l system (” d e l c : \ emv b &n&p . . dat ” ) ;<br />
8 c a l l system (” d e l c : \ a d i c o &n&p . . dat ” ) ;<br />
9 c a l l system (” d e l c : \ a d i c b &n&p . . dat ” ) ;<br />
10 run ;<br />
11 %mend d e l e t a ;<br />
12 %macro estimacao da<strong>dos</strong> ( da<strong>dos</strong>=,mu=, beta =, i n d i c e =,n=,p=);<br />
13 proc d a t a s e t s l i b r a r y=work ; d e l e t e emvs adic ; run ;<br />
14 proc p r i n t t o<br />
15 f i l e =”c : \ nda . dat ” new ;<br />
16 run ;<br />
17<br />
18 proc nlmixed data=&da<strong>dos</strong> var<strong>de</strong>f=n cov tech=t r ;<br />
19 ods output ParameterEstimates = emvs ;<br />
20 ods output AdditionalEstimates = adic ;<br />
21 parms mu = &mu, beta = &beta ;<br />
22 bounds mu>0, beta >0;<br />
23 lnh = l o g ( beta)−beta ∗ l o g (mu)+( beta −1)∗ l o g ( time ) ;<br />
24 l n s = −(time /mu)∗∗ beta ;<br />
25 L = d e l t a ∗ lnh+l n s ;<br />
26 mo<strong>de</strong>l L ˜ g e n e r a l (L ) ;<br />
27 estimate ” logmediana ” l o g (mu)+(1/ beta ) ∗ ( l o g (− l o g ( 1 − 0 . 5 0 ) ) ) ;<br />
28 estimate ”logQ1” l o g (mu)+(1/ beta )∗( l o g (− l o g ( 1 − 0 . 2 5 ) ) ) ;<br />
29 estimate ”logQ3” l o g (mu)+(1/ beta )∗( l o g (− l o g ( 1 − 0 . 7 5 ) ) ) ;<br />
30 run ;<br />
31<br />
32 proc p r i n t t o ; run ;<br />
33<br />
34 data n u l l ;<br />
35 s e t emvs ( keep=parameter estimate s t a n d a r d e r r o r ) ;<br />
90