# Automatic Linear and Logistic Regression and Survival Analysis

## Documentation for package ‘autoReg’ version 0.3.3

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

addFitSummary | Add model summary to an object of class gaze
addLabelData | Add labels to data
adjustedPlot | Draw an expected plot
adjustedPlot.survreg | Draw predicted survival curve with an object survreg
adjustedPlot2 | Draw a survfitted plot
adjustedPlot2.survreg | Draw predicted survival curve as a ggplot with an object survreg
anderson | Remission survival times of 42 leukemia patients
anderson1 | Remission survival times of 42 leukemia patients
anderson2 | Remission survival times of 31 leukemia patients
as_printable | Convert data.frame to printable form
autoReg | Perform univariable and multivariable regression and stepwise backward regression automatically
autoReg.coxph | Perform univariable and multivariable regression and stepwise backward regression automatically
autoReg.glm | Perform univariable and multivariable regression and stepwise backward regression automatically
autoReg.lm | Perform univariable and multivariable regression and stepwise backward regression automatically
autoReg.survreg | Perform univariable and multivariable regression and stepwise backward regression automatically
autoRegCox | perform automatic regression for a class of coxph
autoRegsurvreg | perform automatic regression for a class of survreg
autoReg_sub | Perform univariable and multivariable regression and stepwise backward regression automatically
beNumeric | Whether a string vector can be converted to numeric
bootPredict | Bootstrap simulation for model prediction
countGroups | Count groups
coxzphplot | Graphical Test of Proportional Hazards
crr2stats | Extract statistics from an object of class crr
crrFormula | Competing Risk Regression with Formula
descNum | Make description for numeric summary
df2flextable | Convert data.frame to flextable
drawline | draw line character
expectedPlot | Draw an adjusted Plot for a numeric predictor
filldown | filldown vector with lead value
find1stDup | Find first duplicated position
findDup | Find duplicated term
fit2final | Make final model using stepwise backward elimination
fit2lik | extract likelihood information with a coxph object
fit2list | Make a list of univariable model with multivariable regression model
fit2model | Restore fit model data containing AsIs expressions
fit2multi | Make multivariable regression model by selecting univariable models with p.value below threshold
fit2newdata | Make a new data of mean value or most frequent value
fit2stats | Summarize statistics with a model
fit2summary | Summarize statistics with a model or model list
gaze | Produce table for descriptive statistics
gaze.coxph | Produce table for descriptive statistics
gaze.data.frame | Produce table for descriptive statistics
gaze.formula | Produce table for descriptive statistics
gaze.formula_sub | Produce table for descriptive statistics
gaze.glm | Produce table for descriptive statistics
gaze.lm | Produce table for descriptive statistics
gaze.survreg | Produce table for descriptive statistics
gaze.tidycrr | Produce table for descriptive statistics
gazeCat | Summary function for categorical variable
gazeCont | Summary function for continuous variable
gaze_sub | Summary function for categorical/continuous variable
getInteraction | Get interaction data from data
getN | Get number of data specified by 'name' and 'desc'
getSigVars | Get explanatory variables of a model with significance level below the threshold
ggcmprsk | Draw Cumulative Incidence Curves for Competing Risks
ggcmprsk2 | Compare cumulative incidence to th Kaplan-Meier estimate
highlight2 | Highlight a data.frame
imputedReg | Make a multiple imputed model
is.mynumeric | Decide whether a vector can be treated as a numeric variable
label_parse | takes the breaks as input and returns labels as output
loglogplot | Draw log-log plot
maxnchar | Return maximum character number except NA
modelPlot | Draw coefficients/odds ratio/hazard ratio plot
modelsSummary | Makes table summarizing list of models
modelsSummaryTable | Makes flextable summarizing list of models
my.chisq.test2 | Statistical test for categorical variables Statistical test for categorical variables
my.t.test2 | Statistical test for continuous variables
mycphSimple | Fit Simple Proportional Hazards Regression Model
myformat | Convert data.frame to printable format
myft | Convert data.frame into flextable
mysurvregSimple | Fit Simple AFT Model
num2factor | Convert a numeric column in a data.frame to a factor
num2stat | Summarize numeric vector to statistical summary
OEplot | Draw an Observed vs Expected plot
p2character2 | Change p value to string
print.autoReg | S3 method print for an object of class autoReg
print.gaze | S3 method print for an object of class gaze
print.modelPlot | S3 method for an class modelPlot
printdf | Print function for data.frame
removeDup | Remove duplicated term
residualNull | Make a residual plot of NULL model
residualPlot | Draw a residual plot with an object of class coxph
restoreData | restore data with factor in column name
restoreData2 | restore data with I() in column name
restoreData3 | restore data with operator in column name
revOperator | get opposite arithmetic operator
roundDf | Convert numeric columns of data.frame to character
setLabel | Add label to a vector
shorten | Shorten an object of class gaze
showEffect | Show effects of covariates
strata2df | Convert a character vector to a data.frame
survfit2df | Extract survival data from an object of class "survfit"
survreg2final | Make final model using stepwise backward elimination
survreg2multi | Make multivariable regression model by selecting univariable models with p.value below threshold