Question: what is loglik in r?
Answer: Details. The logLik function is used by summary functions in R such as AIC . For a Cox model, this method returns the partial likelihood. The number of degrees of freedom (df) used by the fit and the effective number of observations (nobs) are added as attributes.