much simpler code by using plogis function
note. these two values equal check norm(as.matrix(plogis(X %*% theta.est)-logistic(X %*% theta.est)))
Loading
Please sign in to comment
note. these two values equal check norm(as.matrix(plogis(X %*% theta.est)-logistic(X %*% theta.est)))