ABCoxPH {ABSurvTDC} | R Documentation |
Cox-PH Model for Animal Breeding
Description
Data preparation for ABCoxPH
Usage
ABCoxPH(wide_data, lact)
Arguments
wide_data |
Dataset from DataPrep function |
lact |
Number of lactation to be used for model building |
Value
Cox_Model - ABCoxPH model
LongData- Long data
References
J.D. Kalbfleisch and R.L. Prentice (1980). The statistical analysis of failure time data. John Wiley & Sons, Inc., New York, 1980. <doi:10.1002/9781118032985>
J.P. Klein and M L. Moeschberger (2003). Survival Analysis: Techniques for Censored and Truncated Data. Springer New York. <doi:10.1007/b97377>
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))
ABCoxPH(PropData)
[Package ABSurvTDC version 0.1.0 Index]