R/depart.LD.R

`depart.LD` <-
function(perf,CD){

 CDcarre	=	CD*CD
 nbre.desc.tot  = 	length(perf)
 mu    		= 	sum(perf*CDcarre)/sum(CDcarre)
 Y     		= 	perf-mu
 sigma 		= 	sum(Y^2*CDcarre)/nbre.desc.tot

 param		=	c(mu,sigma)

 param


}

Try the HAPim package in your browser

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

HAPim documentation built on May 2, 2019, 12:10 p.m.