Last updated on 2026-01-12 23:50:08 CET.
| Package | ERROR | OK |
|---|---|---|
| pmcalibration | 13 | |
| pminternal | 1 | 12 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘pminternal-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: prediction_stability
> ### Title: Plot prediction stability across bootstrap replicates
> ### Aliases: prediction_stability
>
> ### ** Examples
>
> set.seed(456)
> # simulate data with two predictors that interact
> dat <- pmcalibration::sim_dat(N = 2000, a1 = -2, a3 = -.3)
> mean(dat$y)
[1] 0.1985
> dat$LP <- NULL # remove linear predictor
>
> # fit a (misspecified) logistic regression model
> m1 <- glm(y ~ ., data=dat, family="binomial")
>
> # internal validation of m1 via bootstrap optimism with 10 resamples
> # B = 10 for example but should be >= 200 in practice
> m1_iv <- validate(m1, method="boot_optimism", B=10)
It is recommended that B >= 200 for bootstrap validation
Error in serverSocket(port = port) :
creation of server socket failed: port 11920 cannot be opened
Calls: validate ... boot_optimism -> <Anonymous> -> makePSOCKcluster -> serverSocket
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
boot_optimism 4.728 0.294 6.529
mape_stability 4.328 0.118 5.421
classification_stability 4.293 0.149 5.567
Flavor: r-devel-linux-x86_64-debian-gcc