ds.logistic: Logistic Regression

Description Usage Arguments Details Value Dependencies Author(s) See Also Examples

Description

Computes logistic regression models. It can be used to fit univariate, multivariate and weighted logistic models.

Usage

1
2
ds.logistic(formula, learningrate = 0.01, dif = 1e-09,
  checks = FALSE, datasources = NULL)

Arguments

formula

a character that can be coerced to an object of class formula. It is a symbolic description of the model to be fitted.

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 data frame, from opal datasources.

Details

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.

Value

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.

Dependencies

getDerivative

Author(s)

Paula Raissa Costa e Silva

See Also

Other regressions: ds.linear, ds.poisson, getDerivative

Examples

1
2
3
{
ds.logistic('menarche ~ D$age')
}

paularaissa/distStatsClient documentation built on June 19, 2019, 12:43 a.m.