Skip to content

Commit fcaf1d5

Browse files
committed
fixed small bug with last commit
1 parent 2e592f0 commit fcaf1d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selectiveInference/R/funs.fixed.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ sigma=NULL, alpha=0.1,
138138
Xint <- cbind(rep(1,n),x)
139139
# indices of selected predictors
140140
S = c(1,vars + 1)
141-
notS = which(abs(beta) <= tol.coef) + 1
142141
} else {
143142
pp=p
144143
Xint <- x
145144
# indices of selected predictors
146145
S = vars
147-
notS = which(abs(beta) <= tol.coef)
146+
# notS = which(abs(beta) <= tol.coef)
148147
}
149148

149+
notS = setdiff(1:pp,S)
150150

151151
XS = Xint[,S]
152152
hbetaS = hbeta[S]

0 commit comments

Comments
 (0)