Re: [R] Interpreting summary.lm for a 2 factor anova

2016-12-02 Thread Bert Gunter
> Best Regards, > Ashim > > PS : My apologies for emailing my query to this list. Can you tell me the > names of a few (active) statistics help list ? stats.stackexchange.com -- Bert __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Interpreting summary.lm for a 2 factor anova

2016-12-02 Thread Ashim Kapoor
Please allow me to rephrase myquery. > model.tables(model,"m") Tables of means Grand mean 28.14815 wool wool A B 31.037 25.259 tension tension L M H 36.39 26.39 21.67 wool:tension tension wool L M H A 44.56 24.00 24.56 B 28.22 28.78 18.78 > The

Re: [R-es] Resumen de R-help-es, Vol 94, Envío 1

2016-12-02 Thread patricio fuenmayor
Hola... Yo he trabajado con este paquete: https://github.com/agstudy/rsqlserver me ha dado buenos resultados... saludos El 2 de diciembre de 2016, 6:00, escribió: > Envíe los mensajes para la lista R-help-es a > r-help-es@r-project.org > > Para

Re: [R] i am trying to teach myself R

2016-12-02 Thread RICHARD M. HEIBERGER
I will recommend my book. http://www.springer.com/us/book/9781493921218 Sent from my iPhone > On Dec 2, 2016, at 11:07, peter dalgaard wrote: > > Also notice that there are relatively inexpensive books. Mine and Bob > Muenchen's for instance, which tackle your situation

Re: [R] Interpreting summary.lm for a 2 factor anova

2016-12-02 Thread David Winsemius
> On Dec 2, 2016, at 9:09 AM, David Winsemius wrote: > >> >> On Dec 2, 2016, at 6:16 AM, Ashim Kapoor wrote: >> >> Dear Pikal, >> >> All levels except the interactions are compared to the Intercept. I'm a >> little confused as to what's going

Re: [R] R & MongoDB

2016-12-02 Thread Fernando Mozas Enguita
Thanks Daniel for the info, My principal problem is that I have the script on R and Works fine. But When I copy on Power BI, it Didn´t work. I would like to know if someone have worked with the combination of Mongo + R + PowerBI and had the same probllem. Thanks! -Mensaje original-

[R] Oddd results when computing confidence intervals

2016-12-02 Thread Abraham Mathew
I have a vector of values, and have written a function that takes each value in that vector, generates a normal distribution with that value as the mean, and then finds the interval at different levels. However, these intervals don't seem to be right (too narrow). ### CREATE PREDICTION INTERVALS

Re: [R] Interpreting summary.lm for a 2 factor anova

2016-12-02 Thread David Winsemius
> On Dec 2, 2016, at 6:16 AM, Ashim Kapoor wrote: > > Dear Pikal, > > All levels except the interactions are compared to the Intercept. I'm a > little confused as to what's going on in interaction terms eg. the cell > wool B : tension M. It's mean is : > 28.78 and 28.78

Re: [R] R Integration with SPSS Modeler

2016-12-02 Thread Bert Gunter
Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Dec 2, 2016 at 8:37 AM, Paul Bernal wrote: > Hello everyone, > > I have installed

[R] R Integration with SPSS Modeler

2016-12-02 Thread Paul Bernal
Hello everyone, I have installed R version 3.3.2 (64 bit) but SPSS Modeler (version 16.0) requires R version 2.15.2 (which is obviously pretty old). Would it cause any problem if I have two different R versions installed in my computer? Can I have both versions 3.3.2 and 2.15.2? Any

Re: [R] i am trying to teach myself R

2016-12-02 Thread peter dalgaard
Also notice that there are relatively inexpensive books. Mine and Bob Muenchen's for instance, which tackle your situation from somewhat different perpectives. Bob's is very specifically translating from SAS/SPSS to R, mine is more like "here's how to do X using R". There are also other players

Re: [R] i am trying to teach myself R

2016-12-02 Thread Bert Gunter
Yes -- and probably much more. https://cran.r-project.org/web/views/ Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Dec 1, 2016 at 1:33

Re: [R] confidence intervals for orthogonal contrasts

2016-12-02 Thread James Henson
Richard, Thanks, Have not previously used the HH package, but looks as if it contains many useful tools. Will check out your book also. Best regards, James On Thu, Dec 1, 2016 at 10:18 PM, Richard M. Heiberger wrote: > James, > > Please look at the maiz example, the last

Re: [R] Interpreting summary.lm for a 2 factor anova

2016-12-02 Thread Ashim Kapoor
Dear Pikal, All levels except the interactions are compared to the Intercept. I'm a little confused as to what's going on in interaction terms eg. the cell wool B : tension M. It's mean is : 28.78 and 28.78 - 44.56 = -15.78 != 21.111. It's something like 44.56 (intercept) -16.333 (wool B)

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Elysa Mitova
Hi, sadly it does not work either, because my index (x axis) is an atomic vector. Error Message: $ operator is invalid for atomic vectors I think I have to stick to displaying the confidence intervals with straight lines (ablines) , instead of a shaded area (polygon) Thank you so much for your

Re: [R] Interpreting summary.lm for a 2 factor anova

2016-12-02 Thread PIKAL Petr
Hi You probably could get better answer from experts but it has something to do with contrasts. ?contrasts Number 44.556 is mean for wool A and tension L and this is the level to which every other level is compared. Cheers Petr > -Original Message- > From: R-help

Re: [R] i am trying to teach myself R

2016-12-02 Thread PIKAL Petr
Hi You can find overview of R capabilities here. https://cran.r-project.org/web/views/ Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > hotproje...@nyc.rr.com > Sent: Thursday, December 1, 2016 10:33 PM > To: r-help@r-project.org >

[R] rstan error: C:/Rtools/mingw_64/bin/g++: not found

2016-12-02 Thread S Ellison
Apologies for posting a possibly package-specific question, but I'm not sure whether this is an R or rstan ussue. Running rstan under R 3.1.1 in windows 10 I get the well-known error "Compilation ERROR, function(s)/method(s) not created! C:/Rtools/mingw_64/bin/g++: not found" The cause on my

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Jim Lemon
Hang on, maybe you mean something like this: erupt_dens<-density(faithful$eruptions) plot(erupt_dens,ylim=c(0,0.65)) dispersion(erupt_dens$x,erupt_dens$y,ulim=erupt_dens$y/5, type="l",fill="lightgray",interval=TRUE) lines(erupt_dens) Jim On Fri, Dec 2, 2016 at 9:36 PM, Jim Lemon

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Jim Lemon
In order to display a polygon, you need x/y pairs for each point. If you just want a rectangle, you only need four x/y pairs, e.g.: plot(0,xlim=x(2.44,2.57),ylim=c(0,1),type="n") polygon(c(2.44,2.57,2.57,2.44),c(0,0,1,1),col="lightgray") Now if you have a series of x values and want to display a

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Elysa Mitova
Thank you, this seems to work, but it is not exactly what I need (it indeed looks great, but a bit beyond my understanding) I just need a shaded area between 2.44 to 2.57 along the x-axis - a polygon inserted into my density plot (and not a confidence line along a scatter plot like your

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Jim Lemon
Hi Elysa, I think you are going a bit off course in your example. Try this and see if it is close to what you want: data<-rnorm(100)+runif(100,0,15) smu_data<-supsmu(1:100,data) rollfun<-function(x,window=10,FUN=sd) { xlen<-length(x) xout<-NA forward<-window%/%2 backward<-window-forward

Re: [R] Plotting Confidence Intervals into a density plot

2016-12-02 Thread Elysa Mitova
Hi, thank you! I've constructed the upper and lower bounds with a <- 2.505766 s <- 0.7789832 n <- 607 error <- qnorm(0.975)*s/sqrt(n) left <- a-error right <- a+error left right Now, I have the numbers I need, but I have no idea how to plot them. I was thinking of using a polygon, but