Closed jacobmoore5067 closed 9 months ago
Suzanne pointed out that proportions for checkbox variables are adding up to 1, so something isn't being calculated right.
Example:
prepped_dt = hts_prep_data(summarize_var = 'prev_res_factors', variables_dt = variable_list, data = hts_data, id_cols = c('hhid', 'person_id', 'day_id', 'tripid', 'vehid'), weighted = FALSE)
cat_summary = hts_summary(prepped_dt = prepped_dt$cat, summarize_var = 'prev_res_factors', summarize_vartype = 'checkbox', id_cols = c('hhid', 'person_id', 'day_id', 'tripid', 'vehid'), weighted = FALSE)
res_summary<-cat_summary$summary$unwtd
Suzanne pointed out that proportions for checkbox variables are adding up to 1, so something isn't being calculated right.
Example:
prepped_dt = hts_prep_data(summarize_var = 'prev_res_factors', variables_dt = variable_list, data = hts_data, id_cols = c('hhid', 'person_id', 'day_id', 'tripid', 'vehid'), weighted = FALSE)
cat_summary = hts_summary(prepped_dt = prepped_dt$cat, summarize_var = 'prev_res_factors', summarize_vartype = 'checkbox', id_cols = c('hhid', 'person_id', 'day_id', 'tripid', 'vehid'), weighted = FALSE)
res_summary<-cat_summary$summary$unwtd