publish.Score {Publish} | R Documentation |
Publish predictive accuracy results
Description
Write output of riskRegression::Score
in tables
Usage
## S3 method for class 'Score'
publish(object, metrics, score = TRUE, contrasts = TRUE, level = 3, ...)
Arguments
object |
Object obtained with |
metrics |
Which metrics to put into tables. Defaults to
|
score |
Logical. If |
contrasts |
Logical. If |
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
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)
}
[Package Publish version 2023.01.17 Index]