Description Usage Arguments Details Value Dependencies Author(s) See Also Examples
Computes logistic regression models. It can be used to fit univariate, multivariate and weighted logistic models.
1 2 | ds.logistic(formula, learningrate = 0.01, dif = 1e-09,
checks = FALSE, datasources = NULL)
|
formula |
a character that can be coerced to an object of class |
learningrate |
a numeric, controls how much we are adjusting the regression model. |
dif |
a numeric, controls the learning convergence. |
checks |
a boolean, if TRUE (default) checks that verify elements on the server side such checks lengthen the run-time so the default is FALSE and one can switch these checks on (set to TRUE) when faced with some error(s). |
datasources |
a list of opal object(s) obtained after login in to opal servers;
these objects hold also the data assign to R, as |
It is a wrapper for the client side function getDerivative
, setting the model family
as 'binomial'.
The Newton Raphson Method is apllied to compute the Poisson coefficients.
Returns a list with the following components:
call |
the model formula. |
coefficients |
a vector of logistic regression coefficients. |
xtxw |
a data matrix, the Hessian matrix. |
xtyp |
a data matrix, that integrates the computation of derivatives. |
getDerivative
Paula Raissa Costa e Silva
Other regressions: ds.linear
,
ds.poisson
, getDerivative
1 2 3 | {
ds.logistic('menarche ~ D$age')
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.