Re: [R] Fwd: User defined panel functions in lattice

2012-04-20 Thread David Winsemius
On Apr 20, 2012, at 9:14 PM, ilai wrote: Oops - that is "reply all" On Fri, Apr 20, 2012 at 5:29 PM, David Winsemius > wrote: I'm a bit puzzled by this exchange. I know there is a 'panel.locfit', but you two are spelling it differently. Can you explain why you are doing so? Hi David,

Re: [R] Problem with Tukey test

2012-04-20 Thread Alex_Ponce
HELLO WELCOME TO R here is your code: I'm new using R im trying to do a tukey test, but when i see the results the p value results in NA im guessing its because i have missing values but im not sure how to fix it AnovaModel.2 <- aov() If your original data.frame or your raw data have "NA's" yo

[R] Barplot problem

2012-04-20 Thread André Silva
Hello, I have little experience with r, so I wonder if someone could help me? I need to plot a diversity measure (Fisher`s alpha) for different sites. I calculated the values using the following commands: Data(BCI) alphaBCI <- fisher.alpha(BCI) I need boxplots showing the data variation between s

Re: [R] ANOVA in quantreg - faulty test for 'nesting'?

2012-04-20 Thread Galen Sher
Thanks to Brian's suggestion of using the logLik() function, I've dug a little deeper. I definitely think f1 and f2 are nested models. For example, by adding x2 to fmla1, we obtain a formula that quite clearly nests fmla1 and achieves the same log likelihood as that obtained for f2. Here is the ext

[R] Splitting a dataframe by character vector

2012-04-20 Thread Ben Neal
I am just trying to split a dataframe of 750 observations of 29 variables by "Site", which is a vector in the dataframe with five text names (ex. PtaCaracol). I just want to generate summary statistics for my other variables for each site individually. I know this should be simple, and I did r

Re: [R] Barplot problem

2012-04-20 Thread Mark Lamias
Here is an example you can use:  #Generate random normal variables to use as dummy data for Fisher's Alpha alphaBCI<-rnorm(100)   #Assume you have 5 sites, each with 20 data points sites<-rep(c("Site 1", "Site 2", "Site 3", "Site 4", "Site 5"), each=20)   #Making sites a factor will produce the str

Re: [R] Fwd: User defined panel functions in lattice

2012-04-20 Thread Duncan Mackay
Hi David if you go library(locfit) ? panel.locfit The function will do contour/wireframe like plots using par.settings of region as well as normal 2D plots I could not get panel.locfit to work using par.settings and created my own panel function as panel.Locfit at the time I did not think th

Re: [R] Fwd: User defined panel functions in lattice

2012-04-20 Thread Duncan Mackay
Hi David, ilai The root cause of the problem is the passing of arguments to panel functions to me and my colleagues. Just going through the archives there seems to be different ways for very similar/same outcomes and trying to get a pattern is hard to discern. I frequently have to use the subs

Re: [R] Splitting a dataframe by character vector

2012-04-20 Thread Rolf Turner
On 21/04/12 13:52, Ben Neal wrote: I am just trying to split a dataframe of 750 observations of 29 variables by "Site", which is a vector in the dataframe with five text names (ex. PtaCaracol). I just want to generate summary statistics for my other variables for each site individually. I kno

Re: [R] Fwd: User defined panel functions in lattice

2012-04-20 Thread ilai
On Fri, Apr 20, 2012 at 8:15 PM, David Winsemius wrote: > > Another puzzle. In the original posting there was this segment: > --- > > but gives an error message without par.settings if i want to add >                       panel.Locfit(x,y,nn= 0.9,lwd = c(1,2,3), ...) > > Error using packet 1 > fo

Re: [R] multi-machine parallel setup?

2012-04-20 Thread ivo welch
the vignette to the library(parallel) mentions snow repeatedly (esp differences in its implementation in parallel from the original). unfortunately, it doesn't give an example or tutorial for multi-machine use with sockets. could someone please point me to a simple working example, where a master

Re: [R] Fwd: User defined panel functions in lattice

2012-04-20 Thread Bert Gunter
A comment... On Fri, Apr 20, 2012 at 8:32 PM, Duncan Mackay wrote: > Hi David, ilai > > The root cause of the problem is the passing of arguments to panel functions > to me and my colleagues. > Just going through the archives there seems to be different ways for very > similar/same outcomes and >

Re: [R] symmetric matrix on both diagonals

2012-04-20 Thread Petr Savicky
On Fri, Apr 20, 2012 at 10:52:47AM -0400, David Winsemius wrote: > > On Apr 20, 2012, at 7:05 AM, Petr Savicky wrote: > > >On Fri, Apr 20, 2012 at 03:03:40AM -0700, juliane0212 wrote: > >> > >>I'm having some problems computing a matrix being symmetric on both > >>diagonals. > >> > >>Does anyone

<    1   2