Skip to content

Commit 7b23150

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selectiveInference/R/funs.fixedLogit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fixedLogitLassoInf=function(x,y,beta,lambda,alpha=.1, type=c("partial"), tol.bet
9696
vup[jj]=junk$vup
9797
sd[jj]=junk$sd
9898

99-
junk2=TG.interval(bbar, A1, b1, vj, MM,alpha=alpha)
99+
junk2=TG.interval(bbar, A1, b1, vj, MM,alpha=alpha, flip=(s2[jj+1]==-1))
100100

101101
ci[jj,]=junk2$int
102102
tailarea[jj,] = junk2$tailarea

0 commit comments

Comments
 (0)