loglik: Negative Loglikelihood.

nloglikR Documentation

Negative Loglikelihood.

Description

Negative Loglikelihood.

Usage

nloglik(paras, dist, fitdata, deductible, limit)

Arguments

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.

Examples

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)

casact/cascsim documentation built on Nov. 12, 2022, 11:53 p.m.