Search results

  1. R

    Optimization with R

    I have to solve it via the generalized distribution. Maybe I should use the function optim in R, however, I don't know how to include data with time and missing values for some of the obsarvation days. I tried a different function like fit.GenGamma which is included in the package Temporal but...
  2. R

    Optimization with R

    I dont think I can solve the problem
  3. R

    Optimization with R

    I m afraid not. I have some data about the time spent in a hospital for those who have undergone surgery for 5 succesive days (data are not available for all 5 days since some have left for example the second day). So I m wondering whether I have to calculate it someway by hand and implement a...
  4. R

    Optimization with R

    I need to calculate maximum likelihood estimates of λ,α,κ for generalized gamma distribution in R and I do not know how to do it. Can anyone help me with this ?
  5. R

    chisq.test - Kolmogorov-Smirnov test for goodness of fit

    How can I test with chisq.test the Null hypothesis that "the sample comes from an exp(1) distribution" against the alternative hypothesis "the sample do not comes from an exp(1) distribution? I wrote the following code in R, is this right? > observed<-z # I generated m = 500 random values from...