glmChecks {dsBaseClient} | 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 |
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.