search for: mafc

Displaying 6 results from an estimated 6 matches for "mafc".

Did you mean: mac
2012 Aug 10
0
error applying user-defined link function to lmer
...alues: please specify some",? : ??missing value where TRUE/FALSE needed In addition: Warning message: In qlogis(p, location, scale, lower.tail, log.p) : NaNs produced 2) Also making the variable global seems not to help (see also http://permalink.gmane.org/gmane.comp.lang.r.lme4.devel/4501) mafc.logit <- function (.m = 2) { .m <<- as.integer(.m) # .m goes global if (.m < 2) stop(".m must be an integer > 1") linkfun <- function(mu) { mu <- pmax(mu, 1/.m + .Machine$double.eps) qlogis((.m * mu - 1)/(.m - 1)) } linkinv...
2005 Mar 09
3
problem using uniroot with integrate
...main function. I've been using R for awhile but there are still many nuances about the scoping and the use of environments that I'm weak on and would like to understand better. I would appreciate any suggestions or solutions that anyone might offer for fixing my error. Thank you. dprime.mAFC <- function(Pc, m) { est.dp <- function(dp, Pc = Pc, m = m) { pr <- function(x, dpt = dp, m0 = m) { dnorm(x - dpt) * pnorm(x)^(m0 - 1) } Pc - integrate(pr, lower = -Inf, upper = Inf, dpt = dp, m0 = m)$value } dp.res <- uniroot(est.dp, interval =...
2008 Nov 08
3
Fitting a modified logistic with glm?
Hi all, Where f(x) is a logistic function, I have data that follow: g(x) = f(x)*.5 + .5 How would you suggest I modify the standard glm(..., family='binomial') function to fit this? Here's an example of a clearly ill-advised attempt to simply use the standard glm(..., family='binomial') approach: ######## # First generate some data ######## #define the scale and location of
2007 May 29
0
new packages psyphy and MLDS
New packages psyphy and MLDS are available on CRAN: psyphy ncludes an assortment of functions useful in analyzing data from pyschophysical experiments. It includes functions for calculating d' from several different experimental designs, links for mafc to be used with the binomial family in glm (and possibly other contexts) and selfStart functions for estimating gamma values for CRT (and possibley other RGB) screen calibration data. MLDS implements analyses for Maximum Likelihood Difference Scaling. Difference scaling is a method for sca...
2007 May 29
0
new packages psyphy and MLDS
New packages psyphy and MLDS are available on CRAN: psyphy ncludes an assortment of functions useful in analyzing data from pyschophysical experiments. It includes functions for calculating d' from several different experimental designs, links for mafc to be used with the binomial family in glm (and possibly other contexts) and selfStart functions for estimating gamma values for CRT (and possibley other RGB) screen calibration data. MLDS implements analyses for Maximum Likelihood Difference Scaling. Difference scaling is a method for sca...
2009 Apr 15
0
GEEs - custom link functions
Dear All, Is it possible to run a GEE analysis with a custom link function in R? In particular I'm wanting to use a mafc.logit() generated link function (using the package psyphy). I can use this with a GLM, but it looks like the gee package only accepts predefined link functions. Thanks, Mark This message has been checked for viruses but the contents of an attachment may still contain software viruses, which cou...