R/mulSSE.R

Defines functions mulSSE

Documented in mulSSE mulSSE

mulSSE <-
function( vec, index ){
   tapply( vec, index, function( vectmp ){ sum( vectmp ^ 2 ) - ( sum( vectmp ) ^ 2 ) / length( vectmp ) } )
}

Try the Mulcom package in your browser

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

Mulcom documentation built on Nov. 8, 2020, 5:53 p.m.