DataPrep: Data Preparation

View source: R/ABSurvTDC.R

DataPrepR Documentation

Data Preparation

Description

Data preparation for ABCoxPH

Usage

DataPrep(data, t_int, max_lac)

Arguments

data

Raw data sets

t_int

No of days to be considered as single time interval (Default value: 90)

max_lac

Maximum no of lactation to be considered for data preparation (Default value: Max Lactation)

Value

  • wide_data - Processed data for ABCoxPH

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))

ABSurvTDC documentation built on Jan. 13, 2023, 1:11 a.m.