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 fuction in R or there is something like a bult-in function in R like fit.GenGamma but I don't know how to use it.
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 when I try to run it R cannot find that function.