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
Threshold regression model for cross-sectional dataHello everyone! I am planning to run a threshold regression model for a cross-sectional data. Howeve…
Prediction for discrete-time frailty models with normal heterogeneity (xtcloglog)Dear Statalist. I have estimated a discrete-time hazard model with a normal unobserved heterogeneit…
matching the x/y coordinates of flats/houses to a environmental noise mapMy aim is to match the x/y coordinates of flats to a environmental noise map. The latter is segmente…
Bootstrap and Fisher's exact testHi everyone, I am kind of new to the forum. I have a question relates to resampling and Fisher's exa…
mofd and twoway connected graph issueHello, I use Stata 14.2. I am working on a cross-sectional dataset. I have used the command mofd to…
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