Closed taniokay closed 4 years ago
In calculation of 95% CI, the function CI is like:
CI
CI <- function(par_CI){return(2*(-llk(par_CI)+llk(opt_est$value)))}
But opt_est$value is the value of llk corresponding to the optimal Rt (opt_est$par), so I suppose the function should be like :
opt_est$value
llk
opt_est$par
CI <- function(par_CI){return(2*(-llk(par_CI)+ opt_est$value))}
Thank you for noticing - it was corrected
thanks for your replying and correcting!
In calculation of 95% CI, the function
CI
is like:But
opt_est$value
is the value ofllk
corresponding to the optimal Rt (opt_est$par
), so I suppose the function should be like :