[R] Changing Y axis in R

2011-07-21 Thread SamiC
Hi, So I am trying to plot my results of a model. what i have is the majority of the data between the values of 0 and 30, then one outlier at 80 and another at 130. the model plots a nice line through the data between 0 to 30, however given the outliers you cant seen this unless you change the

Re: [R] Changing Y axis in R

2011-07-21 Thread SamiC
Hi, couldn't find much in the archives. I had checked before posting. Anyway the plotrix package was a good hint. So anyone who reads this in future, i ended up using the gap.plot function in the plotrix package, which does the trick. Thanks -- View this message in context:

[R] GLS - Plotting Graphs with 95% conf interval

2011-07-11 Thread SamiC
Hi, I am trying to plot the original data with the line of the model using the predict function. I want to add SE to the graph, but not sure how to get them out as the predict function for gls does not appear to allow for SE=TRUE argument. Here is my code so far:

Re: [R] How unzip all files?

2011-07-11 Thread SamiC
Hi, Im not really sure what you mean. but if you are just wanting to unzip files, wouldnt it be easier to unzip them using internet explorer (ie right click on the file and select extract all from one the heading in the list i think). Then read them into R? Im not sure if this is what you mean

[R] Zero Inflated Models - Plotting Results

2011-06-30 Thread SamiC
Hi, I am fitting a zero inflated negative binomial model to my data. I have pretty much got my selected model and now i am wanting to plot the model to the origional data. Example. f8-formula(Birds~Tide+Fish+Zooplankton+Chlorophylla|StratificationIndex) Nb8-zeroinfl(f8, dist=negbin, link=

[R] Neg Binomial In GEE

2011-06-27 Thread SamiC
Hi, I want to fit a GEE with a negative binomial distribution. I have uesd already a poisson glm and then neg binommial to deal with alot of dispersion. In my neg binomial residuals i have some patterns so i have implemented a GEE, but only with a poisson family as i couldnt with neg binomial.

Re: [R] Neg Binomial In GEE

2011-06-27 Thread SamiC
Thanks, I have been using zuurs book but it only goes as far as poisson and binomial GEE's. Initially I fitted a glm with poisson and this was over dispersed. Then moved to binomial, but residual patterns are not great (ie variance). Looks like some spatial correlation. However, in the GEE

Re: [R] Sorting Dataframes

2011-06-12 Thread SamiC
Thanks very much. I did it using the do.call and compared it to my loop method and the results were exactly the same. In future i think i will use this function - a lot less typing and time consuming! -- View this message in context:

[R] Sorting Dataframes

2011-06-07 Thread SamiC
I am a new user, and i am trying to sort out a data frame. I have for example bins of data. Within each bin i have multiple counts of animals and the depths at which these count were taken. How would I summarise this to being only the maximum count per bin alongisde the corresponding height

Re: [R] Sorting Dataframes

2011-06-07 Thread SamiC
So I have figured out how to do it via a series of loops and conditions, but i am thinking there must be a quicker way to do it. an example. Bin Depth Fish to: Bin DepthMaxFish 1 4 2 1 8 24 1 8