Questions tagged [fitdistrplus]

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

111 questions
0
votes
0 answers

custom density function with fitdistrplus

Is it possible to use fitdistrplus to fit custom density functions? For example: How to estimate the parameters from the following density function?
fandreacci
  • 937
  • 2
  • 9
  • 14
0
votes
2 answers

How to exclude NAs? (fitdist function)

I have 100x2 data frame DFN. Running fitdist on column DFN$Lret gives error message "function mle failed to estimate the parameters, with the error code 100". I figured the reason is the last row contains an NA. Hence I run fitdist excluding NAs,…
Krug
  • 1,003
  • 13
  • 33
0
votes
1 answer

Plot multiple fitdist objects in same the plot with different colors?

I have a list of fitdist objects, which I have stored using this piece of code. norm_dist_res <- list() for(i in 1:10) { x <- 1+(8000*(i-1)) y <- 8000*i print (x) print(y) norm_dist_res[[i]] = norm_dist_res[[i]] <-…
Lamda
  • 914
  • 3
  • 13
  • 39
0
votes
1 answer

Save variables in a matrix in R

Is it possible to store variables in R.. I have to compute 10*324 fitdist's which each output from this function has to be stored inside a matrix with the size above? is that possible in R? If so then how, i am completely lost? So i tried creating…
Lamda
  • 914
  • 3
  • 13
  • 39
0
votes
0 answers

R - fitting a mixture distribution with fitdistrplus

I have defined a mixture of a LogNormal and a Generalised Pareto (actuar) as follows: dlnormgenpar<-function(x, w_lnorm, meanlog=0, sdlog=1, par_shape1=1, par_shape2=1, …
Simon Todd
  • 156
  • 1
  • 10
-2
votes
1 answer

Why my fitting distribution in R is throwing out errors?

Here is a sample code where i am trying to fit multiple distribution. Can someone please look into the error and run the code to its entirety? Thanks # Step 1: Load required libraries library(ismev) library(tidyverse) library(fitdistrplus) # Step…
Hydro
  • 1,057
  • 12
  • 25
1 2 3 4 5 6 7
8