checkSums: Compute sums of occupational groups

Description Usage Arguments Value

View source: R/functions_analysis.R

Description

This is an accessory function to ensure that the sum of the estimates for each of the occupational groups is 1. If the input data is the original (i.e. incomplete) data, then all the sums should be <=1. If the input data is the results of smart guessing or imputing the missing values, the sums should all be (approximately) 1.

Usage

1
checkSums(ors.data, column.name = "prediction")

Arguments

ors.data

Data frame containing ORS data, including estimates

column.name

Name of column containing estimates; default is "prediction"

Value

A vector whose length is the number of occupational groups present in the data, with each entry being the sum of the estimates associated with a given occupational group


saharaja/imputeORS documentation built on Feb. 4, 2022, 12:27 a.m.