glmChecks: Checks if the elements in the glm model have the right...

Description Usage Arguments Details Value Author(s)

Description

This is an internal function required by the client function ds.glm to verify all the variables and ensure the process does not halt inadvertanly.

Usage

1
glmChecks(formula, data, offset, weights, datasources)

Arguments

formula

a character, a regression formula given as a string character

data

a character, the name of an optional data frame containing the variables in in the formula.

offset

null or a numreric vector that can be used to specify an a priori known component to be included in the linear predictor during fitting.

weights

a character, the name of an optional vector of 'prior weights' to be used in the fitting process. Should be NULL or a numeric vector.

datasources

a list of opal object(s) obtained after login in to opal servers; these objects hold also the data assign to R, as dataframe, from opal datasources.

Details

the variables are checked to ensure they are defined, not empty (i.e. are not missing at complete) and evantually (if 'offset' or 'weights') are of 'numeric' with non negative value (if 'weights').

Value

an integer 0 if check was passed and 1 if failed

Author(s)

Gaye, A.


datashield/dsModellingClient documentation built on May 14, 2019, 7:51 p.m.