glmChecks {dsBetaTestClient} | R Documentation |
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.
glmChecks(formula, data, offset, weights, datasources)
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 |
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 |
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').
an integer 0 if check was passed and 1 if failed
Gaye, A.