Learn R Programming

amt (version 0.2.2.0)

fit_clogit: Fit a conditional logistic regression

Description

This function is a wrapper around survival::clogit, making it usable in a piped workflow.

Usage

fit_clogit(data, formula, more = NULL, summary_only = FALSE, ...)

fit_ssf(data, formula, more = NULL, summary_only = FALSE, ...)

fit_issf(data, formula, more = NULL, summary_only = FALSE, ...)

Value

A list with the following entries

  • model: The model output.

  • sl_: The step length distribution.

  • ta_: The turn angle distribution.

Arguments

data

[data.frame]
The data used to fit a model.

formula

[formula]
The model formula.

more

[list]
Optional list that is passed on the output.

summary_only

[logical(1)=FALSE]
If TRUE only a broom::tidy summary of the model is returned.

...

Additional arguments, passed to survival::clogit.