Learn R Programming

broom (version 0.3.4)

aareg_tidiers: Tidiers for aareg objects

Description

These tidy the coefficients of Aalen additive regression objects.

Usage

## S3 method for class 'aareg':
tidy(x, ...)

## S3 method for class 'aareg': glance(x, ...)

Arguments

x
an "aareg" object
...
extra arguments (not used)

Value

  • All tidying methods return a data.frame without rownames, whose structure depends on the method chosen.

    tidy.aareg returns one row for each coefficient, with the columns

  • termname of coefficient
  • estimateestimate of the slope
  • statistictest statistic for coefficient
  • std.errorstandard error of statistic
  • robust.serobust version of standard error estimate
  • zz score
  • p.valuep-value
  • glance returns a one-row data frame containing
  • statisticchi-squared statistic
  • p.valuep-value based on chi-squared statistic
  • dfdegrees of freedom used by coefficients

Examples

Run this code
if (require("survival", quietly)) {
    afit <- aareg(Surv(time, status) ~ age + sex + ph.ecog, data=lung,
                  dfbeta=TRUE)
    summary(afit)
    tidy(afit)
}

Run the code above in your browser using DataLab