The expected trend analysis associated with the test on old_data and new_data by the grouping variable. See the tests for input arguements. The variables are as follows:
expected_trend
A data frame with 9 rows and 3 variables:
The original outcome of interest
The revised outcome of interest
Year the data was "collected"
The group associated with the outcome
The sub-group based on the trend_var within each group
The rate of change in old_outcome by the trend_var within each sub-group
The rate of change in new_outcome by the trend_var within each sub-group
Dummy variable where 1 indicates a sign change in the slope between the old and new data within each sub-group
The number of bins with a sign change in each group
The percentage difference between new_outcome and old_outcome
The mean absolute percentage difference in each group
The ranking of the differences in the outcome variable between the new and old data where 1 is the greatest numb_sign_change and mean_abs_pert_diff.