readUniRegResults | R Documentation |
Read the results from the uniReg
model into .Rdata
format.
readUniRegResults(File = NULL)
File |
File path to |
# install.packages(system.file("IntCens_0.2.tar.gz", package = "ahri"), repos = NULL, type = 'source')
library(IntCens)
data(gdat_demo)
home <- file.path('/home/alain/Seafile/AHRI_Data')
write.table(gdat_demo, file=file.path(home, "intcens/input_data.txt"),
row.names=FALSE, quote=FALSE)
unireg(input = file.path(home, "intcens/input_data.txt"),
output = file.path(home, "intcens/res_dat.txt"),
model = "(Time, sero_event) = Age0 + Age2 + EverCircum",
subject_id = "IIntID", convergence_threshold=0.01, r = 1.0)
ureg_res <- readUniRegResults(
File=file.path(home, "intcens/res_dat.txt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.