R/betaparametw.R

Defines functions betaparametw

Documented in betaparametw

betaparametw <-
function(xn,a,b){
	
	n=length(xn)
	w<-rep(0,n)
	W<-rep(0,n)
	for(i in 1:n){
		w[i]<-(a+b)*xn[i]/(a+b+xn[i])
		}
 for(i in 1:n){
 
 	W[i]<-w[i]/sum(w)
 
 	}
 
# print(W)	
return(W)	
	
	}
Yuande/MBttest documentation built on Aug. 25, 2022, 12:58 a.m.