spark.survreg {SparkR} | R Documentation |
Fit an accelerated failure time (AFT) survival regression model on a Spark DataFrame.
spark.survreg(data, formula, ...) ## S4 method for signature 'SparkDataFrame,formula' spark.survreg(data, formula, ...)
data |
SparkDataFrame for training. |
formula |
A symbolic description of the model to be fitted. Currently only a few formula operators are supported, including '~', ':', '+', and '-'. Note that operator '.' is not supported currently. |
a fitted AFT survival regression model
survival: https://cran.r-project.org/web/packages/survival/
## Not run:
##D df <- createDataFrame(sqlContext, ovarian)
##D model <- spark.survreg(df, Surv(futime, fustat) ~ ecog_ps + rx)
## End(Not run)