loglik: Negative Loglikelihood.

Description Usage Arguments Examples

Description

Negative Loglikelihood.

Usage

1
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

1
2
3
4
5
6
7
8
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)

cascsim documentation built on Jan. 13, 2020, 5:07 p.m.