Description Usage Arguments Details Value Author(s) Examples

View source: R/extractAIC.logistf.r

These functions provide simple backward elimination/forward selection procedures for logistf models

1 2 3 4 |

`object` |
A fitted logistf model object. To start with an empty model, create a model fit with a formula=<y>~1, pl=FALSE. (Replace <y> by your response variable.) |

`scope` |
The scope of variables to add/drop from the model. If left blank, |

`steps` |
The number of forward selection/backward elimination steps. |

`slstay` |
For |

`slentry` |
For |

`trace` |
If TRUE, protocols selection steps. |

`printwork` |
If TRUE, prints each working model that is visited by the selection procedure. |

`pl` |
For |

`...` |
Further arguments to be passed to methods. |

The variable selection is simply performed by repeatedly calling add1 or drop1 methods for logistf, and is based on penalized likelihood ratio test. It can also properly handle variables that were defined as factors in the original data set.

An updated logistf fit with the finally selected model.

Georg Heinze

1 2 3 4 5 6 |

```
Step 0 : starting model
Step 1 : added dia (P= 0.01167743 )
Step 2 : added age (P= 0.01048724 )
Step 3 : added vicl (P= 0.01069806 )
Step 4 : added vic (P= 2.580552e-07 )
Step 0 : starting model
Step 1 : removed oc (P= 0.8751911 )
Step 2 : removed vis (P= 0.05158225 )
```

logistf documentation built on May 30, 2017, 5:25 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.