Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszChrostowski committed Mar 4, 2023
1 parent 58d6a7d commit e77f2fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/nonprobVariablesSelection.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ nonprobSel <- function(selection,

par <- as.vector(par)
par[which(abs(par) < 1e-3)] <- 0
theta_est <- as.matrix(par[par!=0])
theta[[k]] <- theta_est
iddx <- which(abs(theta_est) != 0)
iddx <- which(abs(par) != 0)
theta_estt <- par[iddx]
theta[[k]] <- par
Xloss <- cbind(1, X)

loss_theta[k] <- loss_theta(par = theta_est,
loss_theta[k] <- loss_theta(par = theta_estt,
R = R,
X = as.matrix(Xloss[, iddx]),
weights = weights_X,
Expand Down

0 comments on commit e77f2fd

Please sign in to comment.