Displaying 3 results from an estimated 3 matches for "binindex".
Did you mean:
minindex
2008 Feb 10
1
Error while using fitdistr() function or goodfit() function
...our data
> into k bins of width f<-(max(V1)-min(V1))/k. In that case I would think
> something like this would work more efficiently:
>
> m<-min(V1);
> k<-floor(1 + log2(length(V1)));
> f<-(max(V1)-min(V1))/k;
> binCount<-NULL;
> for(i in seq(length=k)){
> binIndex<-which((m+(i-1)*f<V1)&(V1<m+i*f));
> binCount[i]<-sum(V2[binIndex]);
> };
>
> where i becomes the index of time intervals.
>
> Hope it helps.
>
> Sincerely,
>
> Jason Q. McClintic
>
> r-help-request at r-project.org wrote:
>> Send R-hel...
2008 Feb 10
2
Error in optim while using fitdistr() function
Hello,
I am trying to fit distribution for data consisting of 421 readings.It is
basically no of requests arrived per minute.It contains many 0 entries as no
of requests.When i use
fd<-fitdistr(V2,"gamma")
I get following error:
Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, :
initial value in 'vmmin' is not finite
What should I do ? I need
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
...ur code correctly, you are trying to put your data
into k bins of width f<-(max(V1)-min(V1))/k. In that case I would think
something like this would work more efficiently:
m<-min(V1);
k<-floor(1 + log2(length(V1)));
f<-(max(V1)-min(V1))/k;
binCount<-NULL;
for(i in seq(length=k)){
binIndex<-which((m+(i-1)*f<V1)&(V1<m+i*f));
binCount[i]<-sum(V2[binIndex]);
};
where i becomes the index of time intervals.
Hope it helps.
Sincerely,
Jason Q. McClintic
r-help-request at r-project.org wrote:
> Send R-help mailing list submissions to
> r-help at r-project.org
&g...