Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom link function for Binomial regression #730

Open
filippogambarota opened this issue Nov 30, 2023 · 2 comments
Open

Custom link function for Binomial regression #730

filippogambarota opened this issue Nov 30, 2023 · 2 comments

Comments

@filippogambarota
Copy link

Hi,
Is there a way to specify a custom link function similar to lme4? In my case, I would customize the logit link in a way that the lower bound is the chance level (e.g., 0.5) instead of 0 as done in the psyphy::mafc.logit() function in R.
Thank you!

@dmbates
Copy link
Collaborator

dmbates commented Dec 4, 2023

The mechanism for handling the GLM family and link functions is imported from the GLM.jl package so I would first look there to extend the available families. From src/MixedModels.jl

using GLM: Link, canonicallink, linkfun, linkinv, dispersion, dispersion_parameter

It is embarrassing that I need to ask this but is there a repository where I can read the sources for the psyphy package or do I need to download and expand the tar file from CRAN? I didn't see a repository listed on CRAN and I didn't find a github account for Ken Knoblauch.

@filippogambarota
Copy link
Author

Thank you @dmbates for your answer. In fact there is no official Github repo. I've found this mirror https://github.com/cran/psyphy/blob/master/R/mafc.R where there is there R code for the link function. In this case I was trying to implement the mafc.logit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants