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)	
	
	}

Try the MBttest package in your browser

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

MBttest documentation built on Nov. 8, 2020, 4:57 p.m.