2012-05-19 10 views
1

파레토 형 분포의 테일의 알파 파라미터를 추정해야합니다. 나는 R로 그것을하기 위해 triyng 다. 조금 googling하고 난 후에 나는 이것을 발견했다 reference. 나는 install.packages('aws') 함수로 asw 라이브러리를 직접 설치하려했다. R은 나에게 내가 R이 라이브러리를 찾을 수없는 이유는 SOS 라이브러리헤비 테일 파라미터 추정 R

findFn('awstindex') 
found 0 matches 
x has zero rows; nothing to display. 
Warning message: 
In findFn("awstindex") : HIT not found in HTML; processing one page only. 

으로 시도

In getDependencies(pkgs, dependencies, available, lib) : 
package ‘aws’ is not available 

대답? 꼬리 매개 변수를 R로 측정하는 다른 함수가 있습니까?

+1

install.packages ("aws", repos = "http://cran.at.r-project.org")는 나를 위해 일합니다. – sgibb

+1

고맙습니다. 하지만 왜 모든 저장소에이 라이브러리가 있습니까? – emanuele

+0

함수'awstindex()'가 존재하지 않는 순간을 기다리십시오. ' – emanuele

답변

2

다른 구현 방법에 대해 알고 계십니까? fitdistrplus 패키지 문서에서 언급 한 함수를 파레토 매개 변수를 추정하는 데 사용하는 것이 있습니다.

require(fitdistrplus) 
require(actuar) # to get a random Pareto function 
rpar1000 <- rpareto(1000, 2.5, 3) 
mgedist(rpar1000,"pareto",gof="ADR", start=list(shape=1, scale=1)) 
#------ the ADR measure weights the right tail observations ---------- 
$estimate 
    shape scale 
2.356235 2.871350 

$convergence 
[1] 0 

$value 
[1] 0.2150991 

$hessian 
      shape  scale 
shape 90.15040 -55.60725 
scale -55.60725 35.04152 

$gof 
[1] "ADR" 

$optim.function 
[1] "optim" 

$loglik 
[1] -1612.233