Description Usage Arguments Value
View source: R/addvarlogistic.R
Funció per fer LRT d'amplició de models logístics
1 2 | addvarlogistic(model, max.effect.change = 0.2, candidates = NULL,
formulaH0 = NULL)
|
model |
a logistic model (an object of class "glm", usually, a result of a call to glm). |
max.effect.change |
a threshold to assess changes is betas when a variable is added (see Hosmer-Lemeshow). Default value is 0.2 (more than 20% of change in betas is suspicious/confusion). |
candidates |
a vector with the names of the variables proposed to be added (shold be the same than in the original dataset). |
formulaH0 |
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model. |
A list with complete results: addvar, proposed variable to be added into the model (based on LRT); res, a table with complete results (all LRT performed); mod, a table indicating, for each added variable, variables changing their effect more than max.effect.change; change, smart version of mod.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.