View source: R/publish.Score.R
publish.Score | R Documentation |
Write output of riskRegression::Score
in tables
## S3 method for class 'Score' publish(object, metrics, score = TRUE, contrasts = TRUE, level = 3, ...)
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 |
Collect prediction accuracy results in tables
Results of Score in tabular form
Thomas A. Gerds <tag@biostat.ku.dk>
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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.