Last updated on 2026-10-24 01:52:04 CEST.
| Package | OK | ERROR |
|---|---|---|
| ABSurvTDC | 12 | 1 |
| BaseTempSeed | 13 | |
| EstHTSeed | 13 | |
| ExtendedABSurvTDC | 12 | 1 |
| HTSeed | 13 | |
| HTSeedGLM | 13 |
Current CRAN status: OK: 12, ERROR: 1
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘ABSurvTDC-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: CoxPred
> ### Title: ABCoxPH Prediction
> ### Aliases: CoxPred
>
> ### ** Examples
>
> library("ABSurvTDC")
> library("readxl")
> data_test<-read_excel(path = system.file("extdata/data_test.xlsx", package = "ABSurvTDC"))
> PropData<-DataPrep(data =as.data.frame(data_test))
No time interval specified, defaulting to 90 days
Max no. of lactations to be considered not specified. Defaulting to the max no. present among all animals in data
> model<-ABCoxPH(PropData)
CoxPH model considering all lactations available in wide data
Warning in agreg.fit(X, Y, istrat, offset, init, control, weights = weights, :
Loglik converged before variable 7,10,11 ; beta may be infinite.
> Lact_1<-c("Yes","Yes","Yes","No","No","No","No","No","No","No","No")
> Lact_2<-c("No","No","No","No","Yes","Yes","No","No","No","No","No")
> Lact_3<-c("No","No","No","No","No","No","No","No","Yes","Yes","Yes")
> Lact_4<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_5<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_6<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_7<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_8<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_9<-c("No","No","No","No","No","No","No","No","No","No","No")
> ndata<- data.frame(Lact_1,Lact_2,Lact_3,Lact_4,Lact_5,Lact_6,Lact_7,
+ Lact_8,Lact_9)
> HYS<-2033
> AFC <- 1400
> CoxPred(Model=model, NewData=ndata, AFC, HYS)
Error in a$specials[[i]] : subscript out of bounds
Calls: CoxPred ... survfit.coxph -> model.matrix.coxph -> delete.response -> off
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 12, ERROR: 1
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘ExtendedABSurvTDC-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ExtendedCoxPred
> ### Title: ExtendedABCoxPH Prediction
> ### Aliases: ExtendedCoxPred
>
> ### ** Examples
>
> library("ExtendedABSurvTDC")
> load(system.file("extdata", "data.RData", package = "ExtendedABSurvTDC"))
> PropData<-DataPrep(data =as.data.frame(data_test))
No time interval specified, defaulting to 90 days
Max no. of lactations to be considered not specified. Defaulting to the max no. present among all animals in data
> model<-ExtendedABSurvTDC(PropData)
CoxPH model considering all lactations available in wide data
Warning in agreg.fit(X, Y, istrat, offset, init, control, weights = weights, :
Loglik converged before variable 10,13,14 ; beta may be infinite.
> Lact_1<-c("Yes","Yes","Yes","No","No","No","No","No","No","No","No")
> Lact_2<-c("No","No","No","No","Yes","Yes","No","No","No","No","No")
> Lact_3<-c("No","No","No","No","No","No","No","No","Yes","Yes","Yes")
> Lact_4<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_5<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_6<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_7<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_8<-c("No","No","No","No","No","No","No","No","No","No","No")
> Lact_9<-c("No","No","No","No","No","No","No","No","No","No","No")
> ndata<- data.frame(Lact_1,Lact_2,Lact_3,Lact_4,Lact_5,Lact_6,Lact_7,
+ Lact_8,Lact_9)
> NewData<-ndata
> HYS<-2033
> AFC <- 1400
> Y=as.factor(1)
> S=as.factor(1)
> H=as.factor(1)
> NewData_default <- data.frame(AFC, Y, S, NewData) # Data for default argument of "factors"
> ExtendedCoxPred(Model=model, NewData=NewData_default)
Error in a$specials[[i]] : subscript out of bounds
Calls: ExtendedCoxPred ... survfit.coxph -> model.matrix.coxph -> delete.response -> off
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13
Current CRAN status: OK: 13