addvarlogistic: Funció per fer LRT d'amplició de models logístics

Description Usage Arguments Value

View source: R/addvarlogistic.R

Description

Funció per fer LRT d'amplició de models logístics

Usage

1
2
addvarlogistic(model, max.effect.change = 0.2, candidates = NULL,
  formulaH0 = NULL)

Arguments

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.

Value

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.


IRBLleida/UdBRpackage documentation built on Dec. 24, 2019, 9:10 p.m.