create_risk_table: Create a risk table

Description Usage Arguments Details Author(s)

View source: R/create_risk_table.r

Description

Create a table of those at risk for adoption of the trait and whether or not they actually adopted it. Creates the risk table used in the model fitting process, from the larger census records.

Usage

1
create_risk_table( init_list, pop_data, quiet=TRUE, cognition="additive" )

Arguments

init_list

list of simulation parameters and conditions at initialization

pop_data

a database of individuals and households for the simulator to use

history

a data frame containing census records, the output of diffuse

Details

This function prepares a data frame for analysis using binomial regression models, including logistic regression ("additive") and more exotic models.

Author(s)

Bret Beheim


babeheim/kom documentation built on May 18, 2019, 10:12 a.m.