Skip to content

Commit 32d4bd5

Browse files
Merge pull request #35 from nicoballarini/patch-1
Confidence intervals when estimate is negative in funs.fixedCox.R Thanks for the fix!
2 parents 85f7063 + cc88b97 commit 32d4bd5

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)