Get summary statistics for fitted PIM.
summary_pim(pim_obj)
fitted object from pim_fit()
a data frame with columns
term | covariates |
estimate | point estimate |
std.error | standard error |
statistic | Z-statistic (asymptotic) |
p.value | p-value |
link | link function used |
prob.index | probabilistic index |
prob.index.se | standard error of the probabilistic index |
pim_obj <- pim_fit(mtcars$mpg, mtcars[c("cyl", "disp")], link = "logit", nleqslv.global = "dbldog")
summary_pim(pim_obj)
#> term estimate std.error statistic p.value link prob.index
#> 1 cyl -1.326305545 0.297740109 -4.454575 8.405968e-06 logit 0.2097711
#> 2 disp -0.008545072 0.006206241 -1.376851 1.685582e-01 logit 0.4978637
#> prob.index.se
#> 1 0.049355545
#> 2 0.001551532
pim_obj <- pim_fit(mtcars$mpg, mtcars[c("cyl", "disp")], link = "probit", nleqslv.global = "dbldog")
summary_pim(pim_obj)
#> term estimate std.error statistic p.value link prob.index
#> 1 cyl -0.68885685 0.151762482 -4.539046 5.650938e-06 probit 0.2454567
#> 2 disp -0.00436577 0.003558692 -1.226790 2.199014e-01 probit 0.4982583
#> prob.index.se
#> 1 0.047756552
#> 2 0.001419699