Description Usage Arguments Examples
View source: R/Tarrif.summary.r
This function prints the summary message of the fitted results.
1 2 |
object |
fitted object from |
top |
number of top CSMF to show |
id |
the ID of a specific death to show |
... |
not used |
1 2 3 4 5 6 7 8 9 10 11 | data("RandomVA3")
test <- RandomVA3[1:200, ]
train <- RandomVA3[201:400, ]
allcauses <- unique(train$cause)
fit <- tariff(causes.train = "cause", symps.train = train,
symps.test = test, causes.table = allcauses)
correct <- which(fit$causes.test[,2] == test$cause)
accuracy <- length(correct) / dim(test)[1]
summary(fit)
summary(fit, top = 10)
summary(fit, id = "p849", top = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.