This function calculates the proportion of missing data at a baseline wave. If a wave column is present, it uses the lowest number or lowest factor level as the baseline. If no wave column is found, it issues a warning and uses the entire dataset.
Examples
# Example using a dataset with a wave column
# assume dat_long_amelia_log has a column called wave
margot_prop_missing(dat_long_amelia_log)
#> Error: object 'dat_long_amelia_log' not found
# Example using a dataset without a wave column
# assume some_data is a dataset with no wave column
margot_prop_missing(some_data)
#> Error: object 'some_data' not found