Description Usage Format Source Examples
BRFSS Sexual and Gender Minority Questions asked from 2014-2020 https://www.cms.gov/About-CMS/Agency-Information/OMH/resource-center/hcps-and-researchers/data-tools/sgm-clearinghouse/brfss.html.
1 |
A "long" data frame with XX rows of individual BRFSS respondents in a given state and year and YY column variables:
indicator, numeric variable of whether respondent was SGM (sgm_d=1) or not (sgm_d=0)
categorical, factor variable of respondent's SGM and gender identity: Cis, Hetero, Male, etc.
copy of sgm_sex_cat with all transgender identified individuals (TFM, MTF, GNC) collapsed into one "Transgender" category
categorical, factor variable of respondent's sexual orientation: Lesbian; Gay; Bisexual; or Heterosexual
indicator, numeric variable of whether respondent was lesbian, gay, or bisexual (lgb_d=1) or Heterosexual (lgb_d=0)
indicator, numeric variable of whether respondent was Heterosexual (lgb_het_d=1) or not (lgb_het_d=0)
indicator, numeric variable of whether respondent was Gay or Lesbian (lgb_gayles_d=1) or not (lgb_gayles_d=0)
indicator, numeric variable of whether respondent was Bisexual (lgb_bi_d=1) or not (lgb_bi_d=0)
categorical, factor variable of respondent's gender identity: Transgender, Female; Transgender, Gender-Non-Conforming; or Cis-Gendered ("Cis-Gender")
indicator, numeric variable of whether respondent was Trans* Female, Male or Gender-Non-Conforming (genmin_d=1) or Cis-Gendered (genmin_d=0)
indicator, numeric variable of whether respondent was Trans* Female (genmin_fem_d=1) or not (genmin_fem_d=0)
indicator, numeric variable of whether respondent was Transgender, Male (genmin_men_d=1) or not (genmin_men_d=0)
indicator, numeric variable of whether respondent was Gender Non Conforming (genmin_gnc_d=1) or not (genmin_gnc_d=0)
indicator, numeric variable of whether respondent was Cis-Gender (genmin_cis_d=1) or not (genmin_cis_d=0)
numeric variable of state
state FIPS code, labeled with state alphabetic abbreviation
identificaiton variable
Numeric year: 2014-2020
Primary Sampling Unit Variable
Sampling Strata Variable
Original,raw sampling weight: 2014-2020
Character, Version of data: Core (X_LLCPWT), V1 (X_LCPWTV1), V2(X_LCPWTV2), V3 (X_LCPWTV3)
BRFSS Annual Survey Data https://www.cdc.gov/brfss/annual_data/annual_data.htm.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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
brfss_sgm<-full_join(brfss_sgm,waves,by="state") %>%
mutate(sgm_wt_adj = sgm_wt_raw/wave) #adjusting the weight by number of waves
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.