[R] Bayesian functions for mle2 object

2011-08-29 Thread Billy.Requena
Hi everybody, I'm interested in evaluating the effect of a continuous variable on the mean and/or the variance of my response variable. I have built functions expliciting these and used the 'mle2' function to estimate the coefficients, as follows: func.1 - function(m=62.9, c0=8.84, c1=-1.6)

[R] Logistic regression with factorial effect

2010-11-18 Thread Billy.Requena
Hello, I’d like to evaluate the temporal effect on the relationship between a continuous variable (e.g. size) and the probability of mate success. Initially I was trying to do a logistic regression model incorporating the temporal effect, but I don’t know if that is the best option. I simulated

Re: [R] several Filled.contour plots on the same device...

2010-08-19 Thread Billy.Requena
Hi Alexis! I had the same problem you faced and the solution I found was modifying the layout function. That’s an example: f1 - function (a, x) {2.15*a -0.25*x} f2 - function (a,x) {exp(2.36*a - 0.04*x)} a1 - seq(from=5.2, to=6.2, by=(6.2-5.2)/19) b1 - seq(0,32) zeros - rep(0,