easystats / parameters

:bar_chart: Computation and processing of models' parameters
https://easystats.github.io/parameters/
GNU General Public License v3.0
416 stars 37 forks source link

coxme fails #964

Closed lucasxteixeira closed 2 months ago

lucasxteixeira commented 2 months ago

A simple coxme model does not work for me. I tried to debug it, but I couldn't pinpoint the exact issue. If you provide some directions, I'd happy to try to fix this issue.

Minimal example:

data <- coxme::eortc
data$surv <- survival::Surv(data$y, data$uncens)
m1 <- coxme::coxme(surv ~ trt + (1 | center), data = data)
parameters::model_parameters(m1)
strengejacke commented 2 months ago

Thanks, should be fixed in https://github.com/easystats/insight/pull/867

data <- coxme::eortc
data$surv <- survival::Surv(data$y, data$uncens)
m1 <- coxme::coxme(surv ~ trt + (1 | center), data = data)
parameters::model_parameters(m1)
#> # Fixed Effects
#> 
#> Parameter | Coefficient |   SE |       95% CI |     z |      p
#> --------------------------------------------------------------
#> trt       |        0.71 | 0.06 | [0.58, 0.83] | 11.03 | < .001
#> 
#> Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed
#>   using a Wald z-distribution approximation.

Created on 2024-04-26 with reprex v2.1.0