| spark.glm {SparkR} | R Documentation | 
Fits a generalized linear model against a Spark DataFrame.
spark.glm(data, formula, ...) ## S4 method for signature 'SparkDataFrame,formula' spark.glm(data, formula, family = gaussian, epsilon = 1e-06, maxit = 25)
data | 
 SparkDataFrame for training.  | 
formula | 
 A symbolic description of the model to be fitted. Currently only a few formula operators are supported, including '~', '.', ':', '+', and '-'.  | 
family | 
 A description of the error distribution and link function to be used in the model. This can be a character string naming a family function, a family function or the result of a call to a family function. Refer R family at https://stat.ethz.ch/R-manual/R-devel/library/stats/html/family.html.  | 
epsilon | 
 Positive convergence tolerance of iterations.  | 
maxit | 
 Integer giving the maximal number of IRLS iterations.  | 
a fitted generalized linear model
## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D data(iris)
##D df <- createDataFrame(sqlContext, iris)
##D model <- spark.glm(df, Sepal_Length ~ Sepal_Width, family="gaussian")
##D summary(model)
## End(Not run)