# NOT RUN {
library(UdderQuarterInfectionData)
data("udderquarterinfection")
Gamma_Frailty_Interval_Censoring()
# $nlm
# $nlm$minimum
# [1] 5670.491
#
# $nlm$estimate
# [1] 3.7967246 0.1201593 1.9672298 0.8590531
#
# $nlm$gradient
# [1] 0.0002924871 0.0017653292 -0.0005460029 0.0003265086
#
# $nlm$hessian
# [,1] [,2] [,3] [,4]
# [1,] 23.22965 -117.7682 -39.93813 -10.10561
# [2,] -117.76825 15471.4753 567.24283 1228.87332
# [3,] -39.93813 567.2428 664.76359 24.63047
# [4,] -10.10561 1228.8733 24.63047 147.76479
#
# $nlm$code
# [1] 1
#
# $nlm$iterations
# [1] 22
#
#
# $covmat
# [,1] [,2] [,3] [,4]
# [1,] 0.049281911 0.0001242730 0.0027853686 0.001872592
# [2,] 0.000124273 0.0001982213 -0.0001015391 -0.001623066
# [3,] 0.002785369 -0.0001015391 0.0017306214 0.000746460
# [4,] 0.001872592 -0.0016230660 0.0007464600 0.020269244
# }
Run the code above in your browser using DataLab