jmsigner / amt

37 stars 13 forks source link

Broom and fit_issf #114

Closed pntoiv closed 1 month ago

pntoiv commented 1 month ago

Hey,

is there a way to use tidy() (from Broom) with clogit objects returned by fit_issf?

Broom has compatibility with clogit() but tidy() doesn't recoqnize the model objects returned by amt package's fit_issf.

bmrishabh commented 1 month ago

Hi @pntoiv , I am not a contributor to this package but here is a quick response since you have posted recently and I happened to come accross it.

The object returned by fit_issf is a list of three objects: the model fit, the step length distribution, and the turn angle distribution. The tidy() function should recognise the "model" part of this object. For example, if your_model <- fit_issf(data) then tidy(your_model$model) should give you the desired output.

jmsigner commented 1 month ago

Thanks @bmrishabh that's how it works at the moment.