Is there a may to run in Lmer a log-gaussian link function?
I'm currently using pymer4 for quite a big dataset with over 4000 samples and (obviously) have distribution issues. Is there a way to specify model link function as log-gaussian? I believe in R glmer() takes it as gaussian(link = "log")
Unfortunately currently not. We only support the following families with their default link functions:
implemented_fams = [
"gaussian",
"binomial",
"gamma",
"inverse_gaussian",
"poisson",
]
I can look into adding an update that supports using a non-default link function.
@ejolly where can I change the code to implement this? My idea is use the families like the control, it's possible?
@DaviYokogawa Sorry for the delay. If you're interested in those changes I would check out lines 424 and 440 of Lmer.py. Those are the lines that run the model similar to calling lmer or glmer in R and should be able to handle the same arguments. Though you'll want to check out the rpy2 docs for how to structure those arguments.