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
dummy variable in xtreg, fe? Greetings to all I am working on a model with panel data and I want a control with a dummy variable…
Merging two datasets with a common variableHello all, I am using STATA 16 Please I want to merge two datasets, using the common variable medcod…
Interaction: ## versus * - OR are differentDear Statalist: I have some queations METHOD ONE: I created the following interaction variables usi…
Performing factor analysis with panel dataHello everyone, I have panel data with six variables concerning governance quality for 59 countries…
"( invalid name" r198 error while running a loop tempname sdgp_format postfile `sdgp_format' state gdp_pcap fyear using sdgp_format.dta forvalues j …
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