Description Usage Arguments Examples
Aggregate the operations for summary statistics for age, length of stay & BSI time. Generally unformatted for reports.
1 | HCAIsummary(survData)
|
survData |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (survData)
{
trimPerc <- 0.1
print(c("age", summary(survData$age)))
print(sd(survData$age, na.rm = TRUE))
print(table(survData$age))
print(c("LOS", summary(survData$time)))
print(c("sd", sd(survData$time, na.rm = TRUE)))
print(c("trimmed mean", mean(survData$time, trim = trimPerc)))
print(c("spectime", summary(survData$spectime)))
print(c("sd", sd(survData$spectime, na.rm = TRUE)))
print(c("deaths", table(survData$event)))
print(c("gender", table(survData$gender)))
return()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.