[R] creating your own glm link function

From: Anne G <anne_at_wjh.harvard.edu>
Date: Wed 14 Jul 2004 - 08:00:37 EST


In sas and matlab, I have been using a modified link function.

I use a binomial distribution with the link log(p-.5/1-p) instead of log(p/1-p) which is the usual logit link. This allows the probabilities to go from .5 to 1 instead of 0 to 1. which is typical when probabilities vary between chance (.5) and certainty (1) in psychophysics experiments.

I am trying to access if R can do it. If so could someone show me how to set up the link function so I can call it in the glm function?

I know very little about R, the help reads like greek to me, and I can't find an example anywhere.

Getting desperate!

Anne



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 14 08:10:20 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:56 EST