R/IDDIRR.R

Defines functions `IDDIRR`

`IDDIRR` <-
function(finalde,deindst)
{
DE=length(finalde)
gains=finalde[which(!(finalde %in% deindst))]
IDD=length(gains)
IDR=IDD/DE*100
perte=which(!(deindst %in% finalde))
Loss=length(perte)
IRR=Loss/length(deindst)*100
res=c(DE,IDD,Loss,round(IDR,2),round(IRR,2))
names(res)=c("DE","IDD","Loss","IDR","IRR")
res
}

Try the metaMA package in your browser

Any scripts or data that you put into this service are public.

metaMA documentation built on April 12, 2022, 5:07 p.m.