[R] survival function with a Weibull dist

2006-09-21 Thread Anaid Diaz
Hi I am using R to fit a survival function to my data (with a weibull distribution). Data: Survival of individuals in relation to 4 treatments ('a','b','c','g') syntax: survreg(Surv(date2)~males2, dist='weibull') But I have some problems interpreting the outcome and getting the

[R] nls error in formula

2005-04-18 Thread Anaid Diaz
Hi, I'm a new R user, with a lot of questions. At the moment I'm stoped on an error traying to fit a model: x - sandeel ## numeric data (2500-6) y - Noss ## numeric data (0-1.2) A - 0.8 B - 0.6 C - 1/4 nls( y ~ A-B*exp(-C*x)) Error in match.call(definition, call, expand.dots) :

Re: [R] nls error in formula

2005-04-18 Thread Anaid Diaz
thank you, it worked. Sylvia --- Douglas Bates [EMAIL PROTECTED] wrote: Anaid Diaz wrote: Hi, I'm a new R user, with a lot of questions. At the moment I'm stoped on an error traying to fit a model: x - sandeel ## numeric data (2500-6) y - Noss ## numeric data (0-1.2