Skip to content

Model comparison #322

@brandmaier

Description

@brandmaier

My impression from preparing the workshop is that this should really be wrapped up in a function that we ship with the package:

Model comparison of nested models:

Δdev = minus2ll(fitted_h0) - minus2ll(fitted)
Δdf  = dof(fitted_h0) - dof(fitted)

using Distributions
p = 1 - cdf(Chisq(Δdf), Δdev)  # p-value for the LRT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions