Dear all,
I'm a beginner with R, and I am facing a problem in which I haven't
found
help in any FAQs or manuals.
Decision curve analysis published by A. Vickers in 2006 seems appropriate
to my data. There is no R package for decision curve analysis in CRAN, but
I found a project concerning it in R-Forge.
Anyhow, R code for decision curve analysis is provided in the website
www.mskcc.org/research/epidemiology-biostatistics/health-outcomes/decision-curve-analysis.
I followed the turorial provided and saved the R code (dca.R)
and sourced it with R 3.1.0.
source("C:\\Users\\Liisa\\Downloads\\dca-r\\dca.R")
Then I loaded my data.
data1<-read.csv(file.choose(), header=T, sep=";")
and checked it was there by fix(data1) and names(data1).
Then I was trying to tell R to perform the analysis ( I already have the
predicted probabilities made for ROC curve in other software)
dca(data=data1, outcome="OutcomeMACCE",
predictors=c("RiskmodelES2MACCE","RiskmodelES2preTnTMACCE","RiskmodelES2postTnTMACCE")
As a result I only get an error message "unusued arguments"
I also tried renaming the variables (by the command all<-data1$ModelAll,
for each variable), but that did not help.
Is there a problem with that particular R code, or is there a simple error
of mine?
Best regards,
Liisa
[[alternative HTML version deleted]]