Displaying 20 results from an estimated 2000 matches similar to: "Problem with fitdistr function"
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 09
1
Problem with fitdistr function while estimating parameters
Hello,
I am using fitdistr function for parameter estimation.
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
fd<-fitdistr(V2,"weibull")
Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, :
2008 Feb 10
1
Error in optim while using fitdistr() function for estimation of parameters
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
2010 Jan 03
6
Help with function "fitdistr" in "MASS"
Hi, R users:
I want to fit my data into a normal distribution by using the command
"fitdistr" in "MASS".
I changed my data class from "ts" to "numeric" by
>class(mydata)="numeric"
but after using "fitdistr", I got the result below
>fitdistr(mydata,"normal")
mean sd
NA NA
(NA) (NA)
the help doc of
2008 Feb 10
1
Error while using fitdistr() function or goodfit() function
Try changing your method to "ML" and try again. I tried the run the
first example from the documentation and it failed with the same error.
Changing the estimation method to ML worked.
@List: Can anyone else verify the error I got? I literally ran the
following two lines interactively from the example for goodfit:
dummy <- rnbinom(200, size = 1.5, prob = 0.8)
gf <- goodfit(dummy,
2005 Apr 05
1
Fitdistr and likelihood
Hi all,
I'm using the function "fitdistr" (library MASS) to fit a distribution to
given data.
What I have to do further, is getting the log-Likelihood-Value from this
estimation.
Is there any simple possibility to realize it?
Regards, Carsten
2004 Feb 17
2
problem with fitdistr ?
Hi,
I'm trying fitdistr but I'm getting some errors
> fitdistr(rnorm(100),"Normal")
Error in fitdistr(rnorm(100), "Normal") : 'start' must be a named list
> fitdistr(rnorm(100),"Normal",start=list(mean=0,sd=1))
Error in fitdistr(rnorm(100), "Normal", start = list(mean = 0, sd = 1))
:
supplying pars for the Normal is not
2010 Jan 28
4
Problems with fitdistr
Hi,
I want to estimate parameters of weibull distribution. For this, I am using
fitdistr() function in MASS package.But when I give fitdistr(c,"weibull") I
get a Error as follows:-
Error in optim(x = c(4L, 41L, 20L, 6L, 12L, 6L, 7L, 13L, 2L, 8L, 22L,
:
non-finite value supplied by optim
Any help or suggestions are most welcomed
--
View this message in context:
2003 Nov 27
2
MASS fitdistr()
Dear R experts,
I am trying to use the R MASS library fitdistr() to fit the following
list:
k21stsList<-c(0.76697,0.57642,0.75938,0.82616,0.93706,0.77377,0.58923,0.37157,0.60796,1.00070,0.97529,0.62858,0.63504,0.68697,0.61714,0.75227,1.16390,0.66702,0.83578)
as follows,
library(MASS)
fitdistr(k21stsList, "normal")
But, I get
Error in fitdistr(k21stsList, "normal") :
2008 Feb 09
2
print.fitdistr buglet
Dear developers,
There's a small bug in print.fitdistr that can cause output to be printed
twice, but only if print is called explicitly:
> fit<-fitdistr(rt(1000,3),"t")
There were 11 warnings (use warnings() to see them)
> fit
m s df
-0.02181723 1.00145296 3.13723878
( 0.03865057) ( 0.03999447) ( 0.33298377)
> print(fit)
2003 Jul 25
5
named list 'start' in fitdistr
Hi R lovers!
I'd like to know how to use the parameter 'start' in the function
fitdistr()
obviously I have to provide the initial value of the parameter to optimize
except in the case of a certain set of given distribution
Indeed according to the help file for fitdistr
" For the following named distributions, reasonable starting values
will be computed if `start'
2007 Sep 09
1
fitdistr()
I am trying to fit the chi-squared distribution to a set of data using the fitdistr function found in the MASS4 library, the data set is called ONES3, I have loaded it using the command
ONES3<-read.table("ONES3.pdf",header=TRUE,na="NA")
I print out the dataset ONES3 to the screen to make sure it has loaded
Then I try to fit this data using the command
2011 May 03
3
fitting distributions using fitdistr (MASS)
Please guide me through to resolve the error message that I get
this is what i have done.
>x1<- rnorm(100,2,1)
>x1fitbeta<-fitdistr(x1,"beta")
Error in fitdistr(x1, "beta") : 'start' must be a named list
Yes, I do understand that sometime for the distribution to converge to the
given set of data, it requires initial parameters of the distribution, to
2008 Oct 30
1
Is possible, on biological grounds, suggest to fitdistr (MASS library) that the estimated parameters must be between two values?
Sorry if it is a silly question, I haven't found documentation on this and I
don't know if it is possible.
library(MASS) ## for fitdistr
library(msm) ## for dtnorm
#prepare truncated normal distribution
dtnorm0 <- function(x, mean, sd , log = FALSE) {
dtnorm(x, mean, sd, 105, 135, log)
}
set.seed(1)
#Generate normal distribution with the TRUE population mean (day 106 of the
2011 Nov 30
1
help about fitdistr funtion
Hi,
I have a variable X classified in a lot of groups and I need to run the
[fitdistr] funtion for each group. I tried with the [by] or the [tapply]
funtions because my data is organize in two columns (variable and the
groups), but neither of these command work. If somebody have a tip to help
me up I really appreciate it.
thanks,
[[alternative HTML version deleted]]
2003 Jul 04
1
Problem with fitdistr for beta
I have the following problem:
I have a vector x of data (0<x<=1 ) with
a U-shaped histogram and try to fit a beta
distribution using fitdistr. In fact,
hist(rbeta(100,0.1,0.1)) looks a lot like
my data.
The equivalent to
the example in the manual
sometimes work:
> a <- rbeta(100,0.1,0.1)
> fitdistr(x=a, "beta", start=list(shape1=0.1,shape2=0.1))1)
> shape1
2003 Jul 28
1
Optimization failed in fitting mixture 3-parameter Weibull distri bution using fitdistr()
Dear All;
I tried to use fitdistr() in the MASS library to fit a mixture
distribution of the 3-parameter Weibull, but the optimization failed.
Looking at the source code, it seems to indicate the error occurs at
if (res$convergence > 0)
stop("optimization failed").
The procedures I tested are as following:
>w3den <- function(x, a,b,c)
2005 Nov 17
1
Problem with fitdistr for gamma in R 2.2.0
Dear R developers,
I have encountered strange behaviour of fitdistr for gamma in recent R
build i.e. 2.2.0. I have attached the code for data at the end of this mail
so you can reproduce the problem. In short, I am able to run fitdistr under
2.1.0 without problems, while I get the following error under 2.2.0
(Version 2.2.0 Patched (2005-11-15 r36348))
> fitdistr(otm, "gamma")
Error
2003 Aug 05
1
error message in fitdistr
Hi R lovers
Here is a numerical vector test
> test
[1] 206 53 124 112 92 77 118 75 48 176 90 74 107 126 99 84 114
147 99 114 99 84 99 99 99 99 99 104 1 159 100 53
[33] 132 82 85 106 136 99 110 82 99 99 89 107 99 68 130 99 99
110 99 95 153 93 136 51 103 95 99 72 99 50 110 37
[65] 102 104 92 90 94 99 76 81 109 91 98 96 104 104 93 99 125
89
2006 Sep 23
1
Fitdistr() versus nls()
Hello R-Users,
I'm new to R so I apologize in advance for any big mistake I might
be doing. I'm trying to fit a set of samples with some probabilistic
curve, and I have an important question to ask; in particular I have
some data, from which I calculate manually the CDF, and then I import
them into R and try to fit: I have the x values (my original samples)
and the y values