split_popstr: Das Gupta equation 5.36 for a single population: Decomposes...

View source: R/split_popstr.R

split_popstrR Documentation

Das Gupta equation 5.36 for a single population: Decomposes cross-classified population structures into a set of symmetric proportions indicating contribution of individual structural variables.

Description

Das Gupta equation 5.36 for a single population: Decomposes cross-classified population structures into a set of symmetric proportions indicating contribution of individual structural variables.

Usage

split_popstr(x, id_vars, nvar)

Arguments

x

dataframe consisting of one population, including variables indicating cross-classified structure, and a variable indicating size of each cell

id_vars

character vector of variables indicating cross-classified structure.

nvar

variable name (character string) containing cell sizes

Value

inputted data.frame is returned with the addition of variables for each of the the cross-classified variables representing the contribution to the population size.


DasGuptR documentation built on April 11, 2025, 5:56 p.m.