Skip to content

Commit cc88b97

Browse files
Confidence intervals when estimate is negative
Confidence intervals are not flipped when beta hat is negative
1 parent 85f7063 commit cc88b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selectiveInference/R/funs.fixedCox.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ b1= -(mydiag(s2)%*%MM)%*%s2*lambda
7373
vup[jj]=junk$vup
7474
sd[jj]=junk$sd
7575

76-
junk2=TG.interval(bbar, A1, b1, vj, MM, alpha)
76+
junk2=TG.interval(bbar, A1, b1, vj, MM, alpha, flip=(s2[jj]==-1))
7777
ci[jj,]=junk2$int
7878
tailarea[jj,] = junk2$tailarea
7979

0 commit comments

Comments
 (0)