13.04.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

36 nda = &i n d i c e ;<br />

37 f i l e ” c : \ emv o &n&p . . dat ” mod ;<br />

38 put nda ” ; ” parameter ” ; ” estimate ” ; ” s t a n d a r d e r r o r ;<br />

39 run ;<br />

40<br />

41 data n u l l ;<br />

42 s e t adic ( keep=l a b e l estimate s t a n d a r d e r r o r ) ;<br />

43 nda = &i n d i c e ;<br />

44 f i l e ” c : \ a d i c o &n&p . . dat ” mod ;<br />

45 put nda ” ; ” l a b e l ” ; ” estimate ” ; ” s t a n d a r d e r r o r ;<br />

46 run ;<br />

47 %mend estimacao da<strong>dos</strong> ;<br />

48 %macro bootstrap ( inpt =, seed =, s a m p l e s i z e =, r e p l i c a c a o =,mu=, beta =, i n d i c e=<br />

49 , n=,p=);<br />

50 proc d a t a s e t s l i b r a r y=work ; d e l e t e sample boot emvs adic ; run ;<br />

51<br />

52 proc s u r v e y s e l e c t data = &inpt<br />

53 out = sample boot ( keep=time d e l t a NumberHits r e p l i c a t e )<br />

54 seed = &seed<br />

55 rep = &r e p l i c a c a o<br />

56 method= urs n = &s a m p l e s i z e noprint ;<br />

57 run ;<br />

58<br />

59 proc p r i n t t o f i l e =”c : \ nda . dat ” new ;<br />

60 run ;<br />

61<br />

62 proc nlmixed data=sample boot var<strong>de</strong>f=n cov tech=t r ;<br />

63 ods output ParameterEstimates = emvs ;<br />

64 ods output AdditionalEstimates = adic ;<br />

65 parms mu = &mu, beta = &beta ;<br />

66 bounds mu>0, beta >0;<br />

67 lnh = l o g ( beta)−beta ∗ l o g (mu)+( beta −1)∗ l o g ( time ) ;<br />

68 l n s = −(time /mu)∗∗ beta ;<br />

69 L = numberhits ∗( d e l t a ∗ lnh+l n s ) ;<br />

70 mo<strong>de</strong>l L ˜ g e n e r a l (L ) ;<br />

71 estimate ” logmediana ” l o g (mu)+(1/ beta ) ∗ ( l o g (− l o g ( 1 − 0 . 5 0 ) ) ) ;<br />

72 estimate ”logQ1” l o g (mu)+(1/ beta )∗( l o g (− l o g ( 1 − 0 . 2 5 ) ) ) ;<br />

73 estimate ”logQ3” l o g (mu)+(1/ beta )∗( l o g (− l o g ( 1 − 0 . 7 5 ) ) ) ;<br />

74 by r e p l i c a t e ;<br />

75 run ;<br />

91

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

Saved successfully!

Ooh no, something went wrong!