R/hstar.r

Defines functions hstar

Documented in hstar

hstar = function(abdord,wtord,const,n,y){
    m = length(abdord)
    ic = 0
    icm = 0
    hstar = 0
    while(ic < 1){
       icm = icm + 1
       if(abdord[icm] <= y){
          hstar = hstar + wtord[icm]
       } else {
          ic = 2
       }
       if(icm == m){ic=2}
     }
     hstar = hstar/((n-1)*const)
     hstar
}

Try the Rfit package in your browser

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

Rfit documentation built on Sept. 8, 2023, 5:59 p.m.