Statalist folks,
I am trying to code a function into Stata and need some assistance.
I have a diagnostic test with a symmetric ROC, parameterized as follows: (β=0 as the curve is symmetrical)
Δ=DOR+βS
Δ= logit(s(z)) - logit(1-c(z))
S= logit(s(z)) + logit(1-c(z))
DOR = Diagnostic Odds Ratio | z is the positivity threshold | c(z) is the specificity with threshold z | s(z) is the sensitivity at threshold z
I am trying to find a positivity threshold, z, that will maximize the test's value below:
I am trying to figure out a way to find the S and C (sensitivity and specificity) to maximize a value quantity, X:
X = max ( E2 - E1, E2- E3 , 0 )
E1 = 0
E2 = 0.7
E3 = -0.3 * (1-C) + [(0.15 * S) - (0.45 (1-C)) ] * 0.25
Thanks very much for help!
Related Posts with Maximize "positivity threshold" of symmetric ROC curve given a set of input values for diagnostic testing
Working paper on entropy balancing and update to -ebalfit-A working paper describing the methods used in ebalfit is now available from https://ideas.repec.org…
Code to get Beta coefficients in multiple imputation models in Linear regressionWhat's the code to get Beta coefficients in multiple imputation estimate models in Linear regression…
interpreting REGHDFE with absorb specificationsHi all, I am using panel data with fixed effect. In checking the robustness of my results, I estimat…
Tab row col formatHi, Is it possible to add or remove digits from row/col options in Tab? For example my first row o…
Fixed effects for Regression DiscontinuityHey all, does anyone has an idea on how to include fixed effects in the rdrobust command? I have a…
Subscribe to:
Post Comments (Atom)
0 Response to Maximize "positivity threshold" of symmetric ROC curve given a set of input values for diagnostic testing
Post a Comment