Re: [R] data frame

2005-12-25 Thread justin bem
R-help@stat.math.ethz.ch Rhett Eckstein <[EMAIL PROTECTED]> a écrit : Dear R users: > s4 <- seq(length=10, from=1, by=5) > s<-data.frame(s4,s4,s4) I would like to do some modification to s. And I want the form like the following,if it is possible, how should I do? The last column is the su

[R] Different ARCH results in R and Eviews using garch from tseries

2005-12-25 Thread Constantine Tsardounis
Dear Sir, First of all Happy Holidays!,... I am writing to you because I am a bit confused about ARCH estimation. Is there a way to find what garch() exactly does, without the need of reading the source code (because I cannot understand it)? In Eviews (the results at the end) I am getting differe

[R] factorial anova

2005-12-25 Thread Petra Wallem
Hello every body, I am trying to do a factorial anova analysis following this model: model<-anova(lm(responsevariable~factorA*factorB)) model<-anova(lm(luz$dosel~luz$estado*luz$Bosque)) Df Sum Sq Mean Sq F valuePr(>F) estado 1 6931.1 6931.1 41.6455 7.974e-06 *** Bosque 1

Re: [R] factorial anova

2005-12-25 Thread Rick Bilonick
On Sun, 2005-12-25 at 23:01 -0300, Petra Wallem wrote: > Hello every body, I am trying to do a factorial anova analysis > following this model: > > model<-anova(lm(responsevariable~factorA*factorB)) > model<-anova(lm(luz$dosel~luz$estado*luz$Bosque)) > > Df Sum Sq Mean Sq F valuePr(>F) > es

Re: [R] factorial anova

2005-12-25 Thread John Sorkin
Rick, I read you data into a data.frame called data. I sugguest you run the model as follows: fit<-anova( dosel ~ estado * Bosque, data = data) summary(fit1) The results are: > contrasts(data$Bosque) siemprev deciduo 0 siemprev1 > contrasts(data$estado) pristin

[R] 2D Matrix Plot

2005-12-25 Thread Jaydutt Bhalshankar
Hello Everyone, I am Naive user of 'R' statistical environment and still i'm in learning mode. I would like to know how to plot 2D data graphically. i.e. how to color code each cell in 2D Matrix depending on it's value --- red equals bigger numbers and blue indicates smaller. For example my 2D m

Re: [R] 2D Matrix Plot

2005-12-25 Thread Jacques VESLOT
image() is fine to plot the cells of a matrix. i think balloonplot() in gplots and mosaicplot() can do it too. i sometimes do it with bubble() in gstat. Jaydutt Bhalshankar a écrit : >Hello Everyone, > >I am Naive user of 'R' statistical environment and still i'm in learning >mode. > >I would li