[R] Manipulating code?

2006-05-23 Thread Johannes Hüsing
Dear expeRts, I am currently struggling with the problem of finding cut points for a set of stimulus variables. I would like to obtain cut points iteratively for each variable by re-applying a dichotomised variable in the model and then recalculate it. I planned to have fixed names for the

Re: [R] Manipulating code?

2006-05-23 Thread bogdan romocea
@stat.math.ethz.ch Subject: [R] Manipulating code? Dear expeRts, I am currently struggling with the problem of finding cut points for a set of stimulus variables. I would like to obtain cut points iteratively for each variable by re-applying a dichotomised variable in the model

Re: [R] Manipulating code?

2006-05-23 Thread Seth Falcon
Johannes Hüsing [EMAIL PROTECTED] writes: Dear expeRts, I am currently struggling with the problem of finding cut points for a set of stimulus variables. I would like to obtain cut points iteratively for each variable by re-applying a dichotomised variable in the model and then recalculate

Re: [R] Manipulating code?

2006-05-23 Thread Gabor Grothendieck
Its not entirely clear to me what you want to do but these will do the indicated regression on the subset of the data for which Species is setosa and then do it again but for the subset for which Species is virginica: lm(Sepal.Length ~ Sepal.Width, iris, subset = Species == setosa)

Re: [R] Manipulating code?

2006-05-23 Thread Johannes Hüsing
Johannes Hüsing [EMAIL PROTECTED] writes: [...] I think a simple example of what you are trying to do might be needed. I don't think so, as ... But take a look at the help pages for assign() and get(). ... this seems to be what I was looking for. Many thanks! Greetings Johannes