weight_function: Weight function for weight_index

View source: R/weighting.R

weight_functionR Documentation

Weight function for weight_index

Description

Weight function for weight_index

Usage

weight_function(one_geo, x, geo, w_df, check_geos, mean_type)

Arguments

one_geo

A character of base geo

x

A variable to weight

geo

A vector of ids to weights

w_df

A weigth data.frame

check_geos

A locigal to check if all geos are in w_df

mean_type

A meant type to calculate "geom" for geometric and "arit" for arithmetic


pttry/ficomp documentation built on June 11, 2024, 9:53 p.m.