Produce a set of tests which can be used by most
of the extracts.
This will produce counts of various demographics
using create_demog_test_flags() counts of episodes for every hbtreatcode
using create_hb_test_flags(), a total cost for each hbtreatcode using
create_hb_cost_test_flags().
It will also produce various summary statistics for bedday, cost and
episode date variables.
Arguments
- data
new or old data for testing summary flags (data is from
get_source_extract_path())- sum_mean_vars
variables used when selecting 'all' measures from
calculate_measures()- max_min_vars
variables used when selecting 'min-max' from
calculate_measures()
Value
a dataframe with a count of each flag
from calculate_measures()
See also
create_hb_test_flags(), create_hscp_test_flags()
and create_hb_cost_test_flags() for creating test flags.
calculate_measures
Other extract test functions:
calculate_measures(),
produce_episode_file_ltc_tests(),
produce_episode_file_tests(),
produce_source_ch_tests(),
produce_source_cmh_tests(),
produce_source_extract_tests(),
produce_source_hc_tests(),
produce_source_nrs_tests()