Questions tagged [logistf]

17 questions
0
votes
0 answers

Why does `logistf` give error in R, while `glm` works smoothly

I have run glm (for a logistic regression) and as result I got that the algorithm diverges. I want to try the function logistf to check whether Firth's approach can improve my data analysis. Let dat denote my dataframe and y ~ f1 + f2 be my model.…
Avitus
  • 734
  • 2
  • 14
  • 27
0
votes
2 answers

Having weights shown as an unused argument in logistf R function

I kept getting a problem for the following code; "weights=weight" was shown as an unused argument. How should I solve the problem? x_0 <- rbinom(1,100, 0.01) x_1 <- rbinom(1,100, 0.1) x <- c(0,0,1,1) y <- c(0,1,0,1) weight <- c(100-x_0, x_0,…
1
2