Re: [R] R's integrate function

2008-09-30 Thread Victor Hernando Cervantes Botero
I got the same error. > sessionInfo() R version 2.6.0 (2007-10-03) i386-pc-mingw32 locale: LC_COLLATE=Spanish_Colombia.1252;LC_CTYPE=Spanish_Colombia.1252;LC_MONETARY=Spanish_Colombia.1252;LC_NUMERIC=C;LC_TIME=Spanish_Colombia.1252 attached base packages: [1] stats graphics grDevices utils

Re: [R] Is there a way to not use an explicit loop?

2008-09-17 Thread Victor Hernando Cervantes Botero
Hi, you might try this: set.seed(100) m <- 10 size.a<- 10 prob.a<- 0.3 prior.constant = 0 draw1 = rbinom( m , size.a, prob.a ) beta.draws <- function(draw, size.a, prior.constant, n) { rbeta(n, prior.constant + draw, prior.constant + size.a - draw) } bdraws <- sapply(d

Re: [R] psychometric functions

2008-08-25 Thread Victor Hernando Cervantes Botero
Hi, 2008/8/21 Mario Maiworm <[EMAIL PROTECTED]> > Hi, > I want to fit some psychophysical data with cumulative gaussians. There is > quite a convenient toolbox for matlab called 'psignifit' (formerly known as > 'psychofit'). It allows the lower bound of the sigmoid to vary slightly > from > zero,