Questions tagged [fitdistrplus]

R package: Help to Fit of a Parametric Distribution to Non-Censored or Censored Data

111 questions
0
votes
1 answer

Error in fitdist function: the function mle failed to estimate the parameters, with the error code 1 (Rayleigh distribution)

I am trying to fit my data to Rayleigh distribution by using the fitdist function from the fitdistrplus package. x <- c(19.000000,23.000000,26.000000,45.000000,8.050000,46.900000,1.268333,30.000000, …
Mark
  • 1,577
  • 16
  • 43
0
votes
1 answer

Batch distribution fitting using Tidyverse and fitdistrplus

I have a dataset that is as follows (10,000+ Rows): P_ID SNUM RNUM X ID_233 10 2 40.31 ID_233 10 3 23.21 ID_234 12 5 11.00 ID_234 12 6 0.31 ID_234 13 1 0.00 ID_235 10 2 66.23 From this dataset, I want to fit each distinct P_ID…
Ozmoges
  • 13
  • 2
0
votes
0 answers

Fitting a truncated binomial distribution to data in R

I have discrete count data indicating the number of successes in 10 binomial trials for a pilot sample of 46 cases. (Larger samples will follow once I have the analysis set up.) The zero class (no successes in 10 trials) is missing, i.e. each…
0
votes
1 answer

qqcomp() and ppcomp() in Highcart R

I am trying to make some plots using Highchart package in R. My plots are a qqcomp() and ppcomp(), I'd like to replicate this using highchart. I am able to do this using ggplot2 but I think they would look much better in Highchart. This is my…
0
votes
1 answer

How to use fitdist when the paramters are already known (Pareto distribution)

I am fitting a Pareto distribution to some data and have already estimated the maximum likelihood estimates for the data. Now I need to create a fitdist (fitdistrplus library) object from it, but I am not sure how to do this. I need a fitdist object…
BaroqueFreak
  • 125
  • 1
  • 5
0
votes
1 answer

Problem in finding starting values for shifted exponential distribution

I am trying to fit shifted exponential distribution to my data but fitdist function giving error of 100 and failing to estimate starting values. I also used plotdist function to find starting or initial values in order to fit the distribution and I…
Kazim Khan
  • 31
  • 2
0
votes
0 answers

How can I build a simple gamma distribution model in R?

I'm currently trying to build a model with one predictor variable. I have insurance data: loss dollars and their policy limits. I'm able to plot a histogram with the loss amounts and fit a gamma distribution to the data, but I don't get where the…
0
votes
1 answer

the reason for p-p plot nonlinar

I use library(fitdistrplus) package to fit the data as following: set.seed(100) x1<-rlnorm(500,1,3) f.x1<-fitdist(x1,distr = "lnorm",method = "mme") plot(f.x1) following is the plot result: enter image description here my question is : the x1 data…
0
votes
0 answers

fitdistrplus package in R - Discrete / continuous probability distribution

I need to use fitdistrplus but I have problem with distinguishing when it is discrete and when continuous distribution. Suppose I have X = {1, 2, 3, 4, 1, 2, 5} # discrete distribution Y = {1.23, 1.55, 6.45, 3.33, 4.56, 3.33} # continuos…
heisenberg7584
  • 563
  • 2
  • 10
  • 30
0
votes
0 answers

How can i find a suitable distribution that fits my data using fitdistrplus by identifying good starting values in R?

I have some data on prevalence of a given infection, provided for each country for 6 different age groups. I am trying to find a suitable distribution that may be suitable to model capture the prev using fitdistrplus. A histogram of the prevalence…
0
votes
1 answer

combine facet_grid (ggplot2) with denscomp (fitdistrplus)

First off, I am an R newbie. I am trying to apply density plots to various groups within my data. Using fitdistrplus, I have created a single distribution density plot for all of my data. plot(my_data, pch=20) plotdist(my_data$Capture_Rate,…
Michael Byars
  • 117
  • 2
  • 13
0
votes
1 answer

Is there an R function for Log Weibull distribution?

I log-transformed my data and I attempted to fit multiple distribution including the weibull and gamma distribution. I used the fitdist() function in the fitdistrplus library. I wanted to find the expected value using the Weibull distribution in a…
0
votes
0 answers

Combining qqcomp with a ggplot object

I'm fitting data with traditional distributions. I am using qqcomp to plot my fitted distributions in a qqplot. I want to add to this plot also the data qqplot. I already tried to add them the usual ggplot() way with + getting the message: q+p …
rsrjohnson
  • 100
  • 1
  • 8
0
votes
1 answer

Fitting distribution using fitdistplus caused error in charToDate(x)

I am fitting column in my data frame with poison distribution however, it keep warning this error: "Error in charToDate(x) : character string is not in a standard unambiguous format" Date Admissions Attendance Tri_1 Tri_2 Tri_3 Tri_4…
M1shka
  • 33
  • 4
0
votes
0 answers

Trying to select appropriate distribution for GLMM in r

I have a relatively small dataset (160 observations), of which a very large number of my response variables are zero or very small (e.g., 131/160 values are 0; range 0-1.56). I had originally planned to use GLMM and select an appropriate…
Mako
  • 1