Description Usage Arguments Value Examples
A function computing the log likelihood from the gamma distribution under an order restriction reduction
1 | gamllik(structtime,structttot,structdeaths,time_die,ttot,deaths)
|
structtime |
change-point times to be used to compute the likelihood value |
structttot |
total time on test (ttot) between each time point and the previous time point (or 0) corresponding to structtime |
structdeaths |
number of deaths corresponding to structttot |
time_die |
all event and censoring times from small to large |
ttot |
total time on test corresponding to time_die |
deaths |
the number of deaths corresponding to "ttot" |
log of the likelihood
1 2 3 4 5 6 7 8 | data(gamllik_data)
structtime = c(0.08493151, 1.89315068, 2.38630137, 12.70958904, 18.59452055, 23.46027397, 24.70958904, 28.03013699, 47.85479452, 51.07671233)
structttot = c(15.08493, 302.03836, 73.34795, 1090.68493, 345.04110, 199.20000, 41.22740, 99.71507, 369.89589, 82.45479)
structdeaths = c(2, 25, 6, 76, 22, 10, 2, 4, 6, 1)
time_die = gamllik_data[,1]
ttot = gamllik_data[,2]
deaths = gamllik_data[,3]
gamllik(structtime,structttot,structdeaths,time_die,ttot,deaths)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.