[R] Ordinal response model

2009-10-12 Thread drlucyasher
I have been asked to analyse some questionnaire data- which is not data I'm that used to dealing with. I'm hoping that I can make use of the nabble expertise (again). The questionnaire has a section which contains a particular issue and then questions which are related to this issue (and

[R] unordered multinomial logistic regression (or logit model) with repeated measures (I think)

2009-10-08 Thread drlucyasher
I am attempted to examine the temporal independence of my data set and think I need an unordered multinomial logistic regression (or logit model) with repeated measures to do so. The data in question is location of chickens. Chickens could be in any one of 5 locations when a snapshot sample was

[R] Four concurrent Markov chains

2009-09-21 Thread drlucyasher
Hi, I am trying to write a simulation of the movements of four animals between six patches. The movement between patches is based on a first-order Markov chain so that the next patch they visit depends on the patch they were in before. I have written code that allows me to simulate the movement

Re: [R] Four concurrent Markov chains

2009-09-21 Thread drlucyasher
Oh dear! Yes I see now that when I update j to i then this won't work... but I'm now stuck trying to think of a way round this. I've tried moving all script to before the i- j command and leaving it out all together but neither work. Any ideas? -- View this message in context:

[R] R code for creating and appending to frequency table

2009-09-09 Thread drlucyasher
Apologies for what might seem like an simple question. I have written a model which gives me a frequency distribution for a particular score within a set. What I now want to do is loop this so that I get many different frequency distributions and append them to a table with a collum which