yt_flag: Flags people who live at Yesler Terrace.

View source: R/yt_flag.R

yt_flagR Documentation

Flags people who live at Yesler Terrace.

Description

yt_flag creates a set of flags specific to SHA's Yesler Terrace.

Usage

yt_flag(df, unit = NULL, prop_id = NULL, prop_name = NULL, address = NULL)

Arguments

df

A data frame

unit

A named variable that determines the unit to group by. Default is pid2 (individuals) but pid should be used with housing-only data that has not been matched to Medicaid data.

prop_id

A named variable that specifies the property IDs used in housing data. Default is property_id.

prop_name

A named variable that specifies the property name used in housing data. Default is property_name.

address

A named varaible that specifies the unit address. Default is unit_add_h.

Details

This function creates a set of flags that are specific to Seattle Housing Authority's Yesler Terrace site. It is a convenient way to quickly add the flags to a given data set. Also adds a flag for scattered sites. Once each person's addresses have been flagged as Yesler Terrace/scattered sites or not, a new set of variables is made to indicate whether or not the person has ever lived at Yesler Terrace/scattered sites. It is assumed that the df has variables for the property ID, property name, address, and individual identifier (pid or pid2).

Examples

## Not run: 
yt_flag(pha_elig_demogs, unit = pid)

## End(Not run)


PHSKC-APDE/Housing documentation built on Feb. 6, 2024, 3:27 a.m.