Skip to content

Commit c1d54d1

Browse files
committed
Update test_sensitivity_ln.R
fix the bug of no extra RIR when only one row needed
1 parent 913f771 commit c1d54d1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

R/test_sensitivity_ln.R

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,8 @@ test_sensitivity_ln <- function(est_eff,
296296
conclusion2,
297297
conclusion3,
298298
needtworows = final_solution$needtworows,
299-
fragility = final_solution$final_switch,
300-
fragility_extra = final_solution$final_extra,
301-
RIR = RIR,
302-
RIR_extra = RIR_extra,
299+
fragility = total_switch,
300+
RIR = total_RIR,
303301
notice_SE)
304302
} else {
305303
result <- list(conclusion1,
@@ -311,10 +309,8 @@ test_sensitivity_ln <- function(est_eff,
311309
conclusion2,
312310
conclusion3,
313311
needtworows = final_solution$needtworows,
314-
fragility = final_solution$final_switch,
315-
fragility_extra = final_solution$final_extra,
316-
RIR = RIR,
317-
RIR_extra = RIR_extra)
312+
fragility = total_switch,
313+
RIR = total_RIR)
318314
}
319315
result <- result[!is.na(result)]
320316
return(result)

0 commit comments

Comments
 (0)