Displaying 2 results from an estimated 2 matches for "cs2ip".
2008 Feb 10
1
Error in optim while using fitdistr() function for estimation of parameters
...nitial value in 'vmmin' is not finite
What should I do ? I need this function because I want to get value of
estimated parameters.
Is there any other function to perform such calculations?
Please help me.
Thank You.
Code is as follows:
x<-data.frame()
N<-data.frame((read.table("cs2ip.txt")))
attach(N)
library(MASS)
fd<-fitdistr(V2,"gamma")
Aswad
[[alternative HTML version deleted]]
2008 Feb 10
2
Error in optim while using fitdistr() function
...nitial value in 'vmmin' is not finite
What should I do ? I need this function because I want to get value of
estimated parameters.
Is there any other function to perform such calculations?
Please help me.
Thank You.
Code is as follows:
x<-data.frame()
N<-data.frame((read.table("cs2ip.txt")))
attach(N)
m<-min(V1)
k<-floor(1 + log2(length(V1)))
f<-(max(V1)-min(V1))/k
i<-1
j<-1
while(i<=(length(V1))) {
fc<-0
while(V1[i]<=(m+f)) {
fc<-fc+V2[i]
i<-i+1
if(i>length(V1))
break
}
x[j,1]<-fc
m<-m+f
j<-j+1
}
library(MASS)
fd<...