R/linking_haberman_compute_median.R

Defines functions linking_haberman_compute_median

## File Name: linking_haberman_compute_median.R
## File Version: 0.02

linking_haberman_compute_median <- function(x, w)
{
    res <- linking_haberman_remove_missings_vector(x=x,w=w)
    x <- res$x
    w <- res$w
    res <- stats::quantile(x=x, weights=w,    probs=.5, na.rm=TRUE, ties=TRUE)
    return(res)
}

Try the sirt package in your browser

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

sirt documentation built on May 29, 2024, 8:43 a.m.