fit_clogit: Fit a conditional logistic regression

View source: R/fit_clogit.R

fit_clogitR Documentation

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, ...)

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.

Value

A list with the following entries

  • model: The model output.

  • sl_: The step length distribution.

  • ta_: The turn angle distribution.


amt documentation built on June 25, 2024, 1:14 a.m.