readUniRegResults: Read the results from the unireg model into dataframe.

View source: R/intCens.R

readUniRegResultsR Documentation

Read the results from the unireg model into dataframe.

Description

Read the results from the uniReg model into .Rdata format.

Usage

readUniRegResults(File = NULL)

Arguments

File

File path to uniReg output.txt.

Examples

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

vando026/ahri documentation built on Aug. 10, 2024, 3:20 p.m.