
Function for the Kullback-Leibler Divergence of two normally distributed treatment effects for the same pairwise comparison
Source:R/kld.measure_function.R
kld_measure.Rd
The user specify the (posterior) mean and standard error (or posterior standard deviation) of two estimated treatment effects, X and Y, that refer to the same pairwise comparison and are assumed to follow a normal distribution. The function returns the Kullback-Leibler Divergence (KLD) measure of 1) approximating X with Y, 2) approximating Y with X, and 3) their average.
Arguments
- mean_y
A real number that refers to the mean of the estimated treatment effect Y on the scale of the selected effect measure (in logarithmic scale for relative effect measures).
- sd_y
A positive integer that refers to the posterior standard deviation or the standard error of the estimated treatment effect Y on the scale of the selected effect measure (in logarithmic scale for relative effect measures).
- mean_x
A real number that refers to the mean of the estimated treatment effect X on the scale of the selected effect measure (in logarithmic scale for relative effect measures).
- sd_x
A positive integer that refers to the posterior standard deviation or the standard error of the estimated treatment effect X on the scale of the selected effect measure (in logarithmic scale for relative effect measures).
Value
The function return the following numeric results:
kld_sym | The symmetric KLD value as the average of two KLD values . |
kld_x_true | The KLD value when approximating X by Y (X is the 'truth'). |
kld_y_true | The KLD value when approximating Y by X (Y is the 'truth'). |