Hi,
I have two variables: ”truth” (binary variable: whether a person is sick or healthy) and “prediction” (binary variable: prediction of whether the person is sick or healthy).
I want to calculate sensitivity and specificity of the predictions.
So far I’ve used the ‘diagt’ command, but this only outputs one decimal, and I’d like 2-3 decimals.
Can somebody help with a way to either 1) get the diagt command to output more decimals, or 2) another (simple) way to calculate sensitivity/specificity (with at least 2 decimals)?
Thanks!
I have two variables: ”truth” (binary variable: whether a person is sick or healthy) and “prediction” (binary variable: prediction of whether the person is sick or healthy).
I want to calculate sensitivity and specificity of the predictions.
So far I’ve used the ‘diagt’ command, but this only outputs one decimal, and I’d like 2-3 decimals.
Can somebody help with a way to either 1) get the diagt command to output more decimals, or 2) another (simple) way to calculate sensitivity/specificity (with at least 2 decimals)?
Thanks!
Comment