demographic_profile: Demographic Profile

Description Usage Arguments Value Note

Description

This function is used for a naieve demographic profile of each category within a scored and categorized model. It returns a matrix of size M x (7*num.groups). The values within a simply the sum of each column for each category within each group (as data is binary).

Usage

1

Arguments

x

A 'model_scores' object (i.e. the output from assign_scores_and_categories)

data

The raw data initially used to fit the model containing all variables.

Value

Matrix containing the sums of each column within each category of each group.

Note

The 'data' parameter may also be a subset of columns which contains only the variables of interest. However, the subset must still contain the dependent variables. This is used as an internal check to make sure only data for the specific model is evaluated.


cdeterman/HGTools documentation built on May 13, 2019, 2:34 p.m.