weighted_mean_cpp: Weighted mean (fast)

View source: R/RcppExports.R

weighted_mean_cppR Documentation

Weighted mean (fast)

Description

Computes weighted mean efficiently for bootstrap.

Usage

weighted_mean_cpp(x, w)

Arguments

x

Numeric vector.

w

Numeric weights vector.

Value

Weighted mean scalar.


NonlinearDiD documentation built on May 6, 2026, 1:06 a.m.