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
Changing the Column Titles and adding notes using Outreg2I am trying to export a table of summary statistics using the following command: outreg2 using "res…
Error message r(699)Hi there, I'm trying to install factortest and sortl. It has worked previously, but now when I sear…
IV estimation - panel data 2SLS and LIML model are giving me the same exact results, when i am trying to control for weak instruments.When i ran my panel IV estimation, using xtivreg2, I saw my instruments were very weak and thus trie…
Panel data with three dependent variablesHi all, I am pretty basic with statistics, but already have some experience with Stata. In my curr…
Constructing real rate of return variableDear Community, I am trying to construct a real rate of return on a bond of 2 years to maturity. Th…
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