nloglik | R Documentation |
Negative Loglikelihood.
nloglik(paras, dist, fitdata, deductible, limit)
paras |
A vector contain distribution parameters. |
dist |
A Distribution Object. |
fitdata |
A vector of loss data for fitting. |
deductible |
A vector of deductible data for all loss data. |
limit |
A vector of limit data for all loss data. |
paras<-c(1,1) dist<-new("Normal") fitdata<-rtnorm(1000,3,2,1,10) deductible<-rep(1,1000) limit<-rep(9,1000) nloglik(paras,dist,fitdata,deductible,limit) paras<-c(3,2) nloglik(paras,dist,fitdata,deductible,limit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.