brfss_sgm

Format

A "long" data frame with XX rows of individual BRFSS respondents in a given state and year and YY column variables:

sgm_d

indicator, numeric variable of whether respondent was SGM (sgm_d=1) or not (sgm_d=0)

sgm_sex_cat

categorical, factor variable of respondent's SGM and gender identity: Cis, Hetero, Male, etc.

sgm_sex_cat2

copy of sgm_sex_cat with all transgender identified individuals (TFM, MTF, GNC) collapsed into one "Transgender" category

lgb_cat

categorical, factor variable of respondent's sexual orientation: Lesbian; Gay; Bisexual; or Heterosexual

lgb_d

indicator, numeric variable of whether respondent was lesbian, gay, or bisexual (lgb_d=1) or Heterosexual (lgb_d=0)

lgb_het_d

indicator, numeric variable of whether respondent was Heterosexual (lgb_het_d=1) or not (lgb_het_d=0)

lgb_gayles_d

indicator, numeric variable of whether respondent was Gay or Lesbian (lgb_gayles_d=1) or not (lgb_gayles_d=0)

lgb_bi_d

indicator, numeric variable of whether respondent was Bisexual (lgb_bi_d=1) or not (lgb_bi_d=0)

genmin_cat

categorical, factor variable of respondent's gender identity: Transgender, Female; Transgender, Gender-Non-Conforming; or Cis-Gendered ("Cis-Gender")

genmin_d

indicator, numeric variable of whether respondent was Trans* Female, Male or Gender-Non-Conforming (genmin_d=1) or Cis-Gendered (genmin_d=0)

genmin_fem_d

indicator, numeric variable of whether respondent was Trans* Female (genmin_fem_d=1) or not (genmin_fem_d=0)

genmin_men_d

indicator, numeric variable of whether respondent was Transgender, Male (genmin_men_d=1) or not (genmin_men_d=0)

genmin_gnc_d

indicator, numeric variable of whether respondent was Gender Non Conforming (genmin_gnc_d=1) or not (genmin_gnc_d=0)

genmin_cis_d

indicator, numeric variable of whether respondent was Cis-Gender (genmin_cis_d=1) or not (genmin_cis_d=0)

x_state

numeric variable of state

state

state FIPS code, labeled with state alphabetic abbreviation

seqno

identificaiton variable

year

Numeric year: 2014-2020

x_psu

Primary Sampling Unit Variable

x_ststr

Sampling Strata Variable

sgm_wt_raw

Original,raw sampling weight: 2014-2020

version_sgm

Character, Version of data: Core (X_LLCPWT), V1 (X_LCPWTV1), V2(X_LCPWTV2), V3 (X_LCPWTV3)

Source

BRFSS Annual Survey Data https://www.cdc.gov/brfss/annual_data/annual_data.htm.

Examples

# To adjust the sampling weight (sgm_wt_adj) by dividing the # sampling weight by the number of instances a state is in the data, run: library(tidyverse) data(brfss_sgm) waves<-brfss_sgm %>% filter(year %in% 2016:2018) %>% #keeping only 2016-2018 for illustration group_by(year,state) %>% slice(1) %>% #keeping the first observation of each state + year ungroup() %>% group_by(state) %>% #grouping by state count() %>% #counting how many years the state was included rename(wave=n) #renaming as wave
#> Error: Problem with `filter()` input `..1`. #> x object 'year' not found #> Input `..1` is `year %in% 2016:2018`.
brfss_sgm<-full_join(brfss_sgm,waves,by="state") %>% mutate(sgm_wt_adj = sgm_wt_raw/wave) #adjusting the weight by number of waves
#> Error in is.data.frame(y): object 'waves' not found