publish.Score: Publish predictive accuracy results

Description Usage Arguments Details Value Author(s) Examples

View source: R/publish.Score.R

Description

Write output of riskRegression::Score in tables

Usage

1
2
## S3 method for class 'Score'
publish(object, metrics, score = TRUE, contrasts = TRUE, level = 3, ...)

Arguments

object

Object obtained with riskRegression::Score

metrics

Which metrics to put into tables. Defaults to object$metrics.

score

Logical. If TRUE print the score elements, i.e., metric applied to the risk prediction models.

contrasts

Logical. If TRUE print the contrast elements (if any). These compare risk prediction models according to metrics.

level

Level of subsection headers, i.e., ** for level 2 and *** for level 3 (useful for emacs org-users). Default is plain subsection headers no stars. A negative value will suppress subjection headers.

...

Passed to publish

Details

Collect prediction accuracy results in tables

Value

Results of Score in tabular form

Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (requireNamespace("riskRegression",quietly=TRUE)){
library(riskRegression)
library(survival)
learn = sampleData(100)
val= sampleData(100)
f1=CSC(Hist(time,event)~X1+X8,data=learn)
f2=CSC(Hist(time,event)~X1+X5+X6+X8,learn)
xs=Score(list(f1,f2),data=val,formula=Hist(time,event)~1)
publish(xs)
}

Example output

Loading required package: prodlim
riskRegression version 2020.02.05

*** Metric AUC:


**** Assessment of predictive accuracy
              model    times       AUC         se     lower     upper 
   CauseSpecificCox 3.305563 0.6433327 0.06819398 0.5096749 0.7769904 
 CauseSpecificCox.1 3.305563 0.8220116 0.04699926 0.7298948 0.9141285 

**** Comparison of predictive accuracy
    times              model        reference delta.AUC        se     lower     upper           p 
 3.305563 CauseSpecificCox.1 CauseSpecificCox  0.178679 0.0693037 0.0428462 0.3145117 0.009931583 

*** Metric Brier:


**** Assessment of predictive accuracy
              model    times     Brier         se se.conservative     lower     upper 
         Null model 3.305563 0.2065729 0.01951406      0.02006997 0.1683260 0.2448197 
   CauseSpecificCox 3.305563 0.1990694 0.02525173      0.02561904 0.1495769 0.2485619 
 CauseSpecificCox.1 3.305563 0.1564217 0.02131997      0.02165175 0.1146353 0.1982080 

**** Comparison of predictive accuracy
    times              model        reference delta.Brier         se       lower        upper           p 
 3.305563   CauseSpecificCox       Null model -0.00750345 0.01708261 -0.04098476  0.025977855 0.660484119 
 3.305563 CauseSpecificCox.1       Null model -0.05015121 0.01810875 -0.08564370 -0.014658722 0.005615153 
 3.305563 CauseSpecificCox.1 CauseSpecificCox -0.04264776 0.01706038 -0.07608548 -0.009210038 0.012425864 

Publish documentation built on Jan. 8, 2021, 5:37 p.m.