Skip to content

Defining contrasts #15

@yakir12

Description

@yakir12

Is there any way to define contrasts (like the contrasts - kwarg in https://juliastats.org/GLM.jl/dev/api/#GLM.lm)?

For my relatively simple use-case, I just want to be able to deterministically set the "base-level" to one of the two levels in my single factor...

MWE:

df = DataFrame(y = rand(10), x = repeat(["a", "this should be the base level, not a..."], 5))
fm = @formula(y ~ x)
m = BetaRegression.fit(BetaRegressionModel, fm, df)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions