R Dataset / Package rpart / kyphosis
Documentation |
---|
On this R-data statistics page, you will find information about the kyphosis data set which pertains to Data on Children who have had Corrective Spinal Surgery. The kyphosis data set is found in the rpart R package. You can load the kyphosis data set in R by issuing the following command at the console data("kyphosis"). This will load the data into a variable called kyphosis. If R says the kyphosis data set is not found, you can try installing the package by issuing this command install.packages("rpart") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the kyphosis R data set. The size of this file is about 1,430 bytes. Data on Children who have had Corrective Spinal SurgeryDescriptionThe Usagekyphosis FormatThis data frame contains the following columns:
SourceJohn M. Chambers and Trevor J. Hastie eds. (1992) Statistical Models in S, Wadsworth and Brooks/Cole, Pacific Grove, CA. Examplesfit <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis) fit2 <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis, parms = list(prior = c(0.65, 0.35), split = "information")) fit3 <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis, control = rpart.control(cp = 0.05)) par(mfrow = c(1,2), xpd = TRUE) plot(fit) text(fit, use.n = TRUE) plot(fit2) text(fit2, use.n = TRUE) -- Dataset imported from https://www.r-project.org. |
Title | Authored on | Content type |
---|---|---|
OpenIntro Statistics Dataset - dream | August 9, 2020 - 12:25 PM | Dataset |
OpenIntro Statistics Dataset - winery_cars | August 9, 2020 - 2:38 PM | Dataset |
R Dataset / Package HSAUR / toothpaste | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HSAUR / pottery | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HistData / Guerry | March 9, 2018 - 1:06 PM | Dataset |
Attachment | Size |
---|---|
dataset-65865.csv | 1.4 KB |