Re: [R] Colour gradient is not working.
How can i use colour gradient according to y axis if the y values not increasing gradualy -- View this message in context: http://r.789695.n4.nabble.com/Colour-gradient-is-not-working-tp4708000p4708595.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] display a matrix in colors
Thanks, David, for your time. I found some good tutorials on heatmap.2 and it works : https://www.packtpub.com/books/content/creating-your-first-heat-map-r On Fri, Jun 12, 2015 at 9:12 PM, David Winsemius wrote: > > On Jun 12, 2015, at 5:39 PM, Bogdan Tanasa wrote: > > > Hi David, thanks, yes, > > > > heatmap provides clustered heatmap, and I am looking for an unclustered > display of a matrix, > > Please explain what "clustered" means in the context of a heatmap. > > > and only to set up the color ranges. > > And that needs an explanation as well. > > > thanks for your help ! > > > > -- bogdan > > > > On Fri, Jun 12, 2015 at 5:36 PM, David Winsemius > wrote: > > > > > > On Jun 12, 2015, at 5:28 PM, Bogdan Tanasa wrote: > > > > > Dear all, > > > > > > please could you advise about the most convenient functions or > libraries to > > > use in order to display a matrix as a heatmap/a color matrix ? > > > > > > the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! > > > > What? You must have looked at `?heatmap` and the links on its help page, > so what really is the question? > > > > > > > > -- bogdan > > > > > > [[alternative HTML version deleted]] > > > > > > __ > > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > > and provide commented, minimal, self-contained, reproducible code. > > > > David Winsemius > > Alameda, CA, USA > > > > > > David Winsemius > Alameda, CA, USA > > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] display a matrix in colors
Thanks, Jim. Yes, a good idea, shall I find more time, typically all these little projects I am doing or asking are in big rush. Found some good tutorials about heatmap.2 too: http://www.inside-r.org/packages/cran/gplots/docs/heatmap.2 http://sebastianraschka.com/Articles/heatmaps_in_r.html On Fri, Jun 12, 2015 at 8:41 PM, Jim Lemon wrote: > Hi Bogdan, > Have a look at color2D.matplot in the plotrix package - it's a bit > different from "image" and "heatmap". > > Jim > > > On Sat, Jun 13, 2015 at 10:39 AM, Bogdan Tanasa wrote: > > Hi David, thanks, yes, > > > > heatmap provides clustered heatmap, and I am looking for an unclustered > > display of a matrix, and only to set up the color ranges. thanks for your > > help ! > > > > -- bogdan > > > > On Fri, Jun 12, 2015 at 5:36 PM, David Winsemius > > > wrote: > > > >> > >> > >> On Jun 12, 2015, at 5:28 PM, Bogdan Tanasa wrote: > >> > >> > Dear all, > >> > > >> > please could you advise about the most convenient functions or > libraries > >> to > >> > use in order to display a matrix as a heatmap/a color matrix ? > >> > > >> > the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! > >> > >> What? You must have looked at `?heatmap` and the links on its help page, > >> so what really is the question? > >> > >> > > >> > -- bogdan > >> > > >> > [[alternative HTML version deleted]] > >> > > >> > __ > >> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > >> > https://stat.ethz.ch/mailman/listinfo/r-help > >> > PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >> > and provide commented, minimal, self-contained, reproducible code. > >> > >> David Winsemius > >> Alameda, CA, USA > >> > >> > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Missing Values in Table Statement
HI Don, This is the exact result i need. However in my case i am not getting any value under TRUE whereas FALSE captures total observations in each variable. Please find the syntax and output from the code: table(test$ORIGIN_NAME,is.na(test$SCH_TIME)) Output FALSE BAHADURGARH15 BAREILLY44 BAWAL34 DELHI-11 2446 DELHI-39 170 DELHI-40 86 DELHI NCR-121925 The data from str is attached: data.frame':10765 obs. of 18 variables: $ ORIGIN : chr "DLI11" "DLI11" "NDA50" "NDA50" ... $ ORIGIN_NAME: chr "DELHI-11" "DELHI-11" "NOIDA-50" "NOIDA-50" ... $ DESTINATION: chr "NDA50" "NDA50" "DLI11" "NDA11" ... $ DESTINATION_NM : chr "NOIDA-50" "NOIDA-50" "DELHI-11" "NOIDA-11" ... $ RPS_NO : int 1350760 1366368 1352692 1354642 1354642 1349180 1349180 1356091 1348591 1348591 ... $ VENDOR_NAME: chr "RAJIV GAUTAM" "RAJIV GAUTAM" "RAJIV GAUTAM" "RAJIV GAUTAM" ... $ CR_DT : chr "13-Mar-15" "31-Mar-15" "15-Mar-15" "17-Mar-15" ... $ SCHD_MRKT : chr "SCHEDULE" "SCHEDULE" "SCHEDULE" "MARKET" ... $ VHL_NO : chr "HR63A0931" "HR63A0931" "HR63A0931" "HR63A0931" ... $ vhl_cap: int 8 8 8 8 8 8 8 8 8 8 ... $ SCH_TIME : chr "6:00" "6:00" "21:30" "" ... $ ACTUAL_DEP_DATE: chr "13/03/2015" "31/03/2015" "15/03/2015" "17/03/2015" ... $ ACTUAL_DEP_TIME: chr "6:30" "4:05" "13:37" "20:15" ... $ WAYBILLS : chr "-" "-" "-" "3" ... $ TOTAL_PKG : int 0 0 0 40 256 6 0 0 16 427 ... $ ACTUAL_WT : int 0 0 0 744 3419 65 0 0 193 7223 ... $ CHG_WT : int 0 0 0 770 3730 70 0 0 210 7310 ... $ RTE_CD : chr "DELHI-11-NOIDA-50(DLI11-NDA50)" "DELHI-11-NOIDA-50(DLI11-NDA50)" "NOIDA-50-DELHI-11(NDA50-DLI11)" "NOIDA-50-DELHI-11(NDA50-NDA11-DLI11)" Scheduled time here is character, could this be the reason for the incorrect result. Thanks, Shivi -- View this message in context: http://r.789695.n4.nabble.com/Missing-Values-in-Table-Statement-tp4708534p4708593.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] display a matrix in colors
On Jun 12, 2015, at 5:39 PM, Bogdan Tanasa wrote: > Hi David, thanks, yes, > > heatmap provides clustered heatmap, and I am looking for an unclustered > display of a matrix, Please explain what "clustered" means in the context of a heatmap. > and only to set up the color ranges. And that needs an explanation as well. > thanks for your help ! > > -- bogdan > > On Fri, Jun 12, 2015 at 5:36 PM, David Winsemius > wrote: > > > On Jun 12, 2015, at 5:28 PM, Bogdan Tanasa wrote: > > > Dear all, > > > > please could you advise about the most convenient functions or libraries to > > use in order to display a matrix as a heatmap/a color matrix ? > > > > the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! > > What? You must have looked at `?heatmap` and the links on its help page, so > what really is the question? > > > > > -- bogdan > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > David Winsemius > Alameda, CA, USA > > David Winsemius Alameda, CA, USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] display a matrix in colors
Hi Bogdan, Have a look at color2D.matplot in the plotrix package - it's a bit different from "image" and "heatmap". Jim On Sat, Jun 13, 2015 at 10:39 AM, Bogdan Tanasa wrote: > Hi David, thanks, yes, > > heatmap provides clustered heatmap, and I am looking for an unclustered > display of a matrix, and only to set up the color ranges. thanks for your > help ! > > -- bogdan > > On Fri, Jun 12, 2015 at 5:36 PM, David Winsemius > wrote: > >> >> >> On Jun 12, 2015, at 5:28 PM, Bogdan Tanasa wrote: >> >> > Dear all, >> > >> > please could you advise about the most convenient functions or libraries >> to >> > use in order to display a matrix as a heatmap/a color matrix ? >> > >> > the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! >> >> What? You must have looked at `?heatmap` and the links on its help page, >> so what really is the question? >> >> > >> > -- bogdan >> > >> > [[alternative HTML version deleted]] >> > >> > __ >> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> > https://stat.ethz.ch/mailman/listinfo/r-help >> > PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> > and provide commented, minimal, self-contained, reproducible code. >> >> David Winsemius >> Alameda, CA, USA >> >> > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] display a matrix in colors
Hi David, thanks, yes, heatmap provides clustered heatmap, and I am looking for an unclustered display of a matrix, and only to set up the color ranges. thanks for your help ! -- bogdan On Fri, Jun 12, 2015 at 5:36 PM, David Winsemius wrote: > > > On Jun 12, 2015, at 5:28 PM, Bogdan Tanasa wrote: > > > Dear all, > > > > please could you advise about the most convenient functions or libraries > to > > use in order to display a matrix as a heatmap/a color matrix ? > > > > the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! > > What? You must have looked at `?heatmap` and the links on its help page, > so what really is the question? > > > > > -- bogdan > > > > [[alternative HTML version deleted]] > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > David Winsemius > Alameda, CA, USA > > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] display a matrix in colors
On Jun 12, 2015, at 5:28 PM, Bogdan Tanasa wrote: > Dear all, > > please could you advise about the most convenient functions or libraries to > use in order to display a matrix as a heatmap/a color matrix ? > > the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! What? You must have looked at `?heatmap` and the links on its help page, so what really is the question? > > -- bogdan > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. David Winsemius Alameda, CA, USA __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] display a matrix in colors
Dear all, please could you advise about the most convenient functions or libraries to use in order to display a matrix as a heatmap/a color matrix ? the matrix contains the values of 0, 10, 20, 30 or 100. thank you ! -- bogdan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] problem in auto run iteration in R2OpenBUGS
Not sure from what you sent: The call looks fine, so you need to make inits, data and model file available, I think. And perhaps more an OpenBUGS than an R question... Best, Uwe Ligges On 12.06.2015 20:09, thanoon younis wrote: Hi for all members in R community I have a small problem in the code below when i call OpenBUGS #Call OpenBUGS model= bugs(data, inits, parameters.to.save=parameters, model.file="D:/Run/model.txt", n.iter=5000, n.burnin=0, OpenBUGS.pgm = "C:/Program Files/OpenBUGS/OpenBUGS323/OpenBUGS.exe", working.directory="D:/Run/", n.thin=2, n.chains=2, debug=TRUE, DIC=TRUE) The problem is when the first iteration finish it stop directly without rerun the second iteration so how can i run the iterations automatically. Many thanks in advance __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R 2.15.2 on Mac
Nicki, I don't know if you will be doing any clustering using kmeans in R, but there was a bug in 2.15.2 and 2.15.3 IIRC. This was fixed in 3.0. Btw, are there any capabilities of SPSS that you need and that R can't provide? Best wishes, Ranjan On Fri, 12 Jun 2015 13:37:27 -0400 Nicole Yarkovsky wrote: > Hello, > > I'm trying to install the R integration add on for SPSS version 22 so that > I am able to use a specific R extension in SPSS. For this, I have to > download an older version of R, version 2.15.2 to my MacBook Pro. When I > try to download this older version, it says I cannot install it on my > hard-drive because I have to have Mac versions 10.5 or higher (I have > version 10.10, Yosemite). I read through the FAQ but I did not come across > this topic. > > Do you have any idea how I could install R version 2.15.2? Or any other > ways around this? > > Thank you kindly, > Nicki > -- > Nicole Yarkovsky, M.A. > Ph.D. Candidate, Clinical Psychology > University of Windsor > yark...@uwindsor.ca > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Two factor nonparametric test
google is your friend ... ?R nonparametric statistics (and the like) Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jun 12, 2015 at 2:34 AM, Ana Rodrigues wrote: > I'm just starting to use R, so my question must be really basic... I need a > non parametric test for a two factor (4x3) design. What are the options in > R? If someone could tell me the functions names or even some script > examples, it would be great. > Thank you all =) > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Two-factor-nonparametric-test-tp4708545.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Marascuilo procedure
If this matters -- i.e it is not merely a matter of homework or thesis work -- I suggest you speak with a local statistical expert, as your statistical understanding appears to be too confused to get much help from online forums. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jun 12, 2015 at 10:39 AM, MyList wrote: > Hello All, > > I am new to R and statistics.Pardon me if this a trivial question. > > Can the Marascuilo procedure be applied to a 2 x c contingency table with > c equal to 2 ? > > My understanding is that it is used to compare proportion between two > variables and see which pairs are more significant to make the null > hypothesis be rejected. Is this understanding correct? > > Also, what post hoc tests can be used on categorical data using R. Can > someone lead me to examples or links. I am interested in finding once the > Null Hypothesis is rejected then which of the categories are influencing. > > Null hypothesis (Ho) could be like - old ppl do not do more research > before visiting a doctor.once Ho is rejected I want to find if out of old > or young who actually do more research. > > I am currently on a project on hypothesis testing , market survey > categorical data based designed on a 7 scale lickert analysis. > > Thanks in Advance. > > - Harmeet > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R 2.15.2 on Mac
Install an older OS. Your question really should be directed at SPSS support because they are the ones preventing you from installing a current version of R. Please read the Posting Guide, as it addresses (among other things) the issue of support for old versions of R. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. On June 12, 2015 10:37:27 AM PDT, Nicole Yarkovsky wrote: >Hello, > >I'm trying to install the R integration add on for SPSS version 22 so >that >I am able to use a specific R extension in SPSS. For this, I have to >download an older version of R, version 2.15.2 to my MacBook Pro. When >I >try to download this older version, it says I cannot install it on my >hard-drive because I have to have Mac versions 10.5 or higher (I have >version 10.10, Yosemite). I read through the FAQ but I did not come >across >this topic. > >Do you have any idea how I could install R version 2.15.2? Or any other >ways around this? > >Thank you kindly, >Nicki __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R 2.15.2 on Mac
> On Jun 12, 2015, at 12:37 PM, Nicole Yarkovsky wrote: > > Hello, > > I'm trying to install the R integration add on for SPSS version 22 so that > I am able to use a specific R extension in SPSS. For this, I have to > download an older version of R, version 2.15.2 to my MacBook Pro. When I > try to download this older version, it says I cannot install it on my > hard-drive because I have to have Mac versions 10.5 or higher (I have > version 10.10, Yosemite). I read through the FAQ but I did not come across > this topic. > > Do you have any idea how I could install R version 2.15.2? Or any other > ways around this? > > Thank you kindly, > Nicki As this is Mac specific, it should really be posted to R-SIG-Mac: https://stat.ethz.ch/mailman/listinfo/r-sig-mac That being said, Peter has a post here that touches on this issue: https://stat.ethz.ch/pipermail/r-help//2014-November/423169.html which also raises the issue of why SPSS is requiring such an old version of R. As to how to accomplish what Peter references, a Google search is likely to be enlightening. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] accessing the ellements in an array and factors.
Hi Bogdan, I seem to be able to do it like this: xxx <-array(0, dim=4) dimnames(xxx) = list(list_triplet_wells) xxx A1:A2:A3 A4:A5:A6 A7:A8:A9 A10:A11:A12 0 0 0 0 yyy<-factor(c("A1:A2:A3", "A4:A5:A6 ", "A7:A8:A9", "A10:A11:A12")) yyy [1] A1:A2:A3A4:A5:A6A7:A8:A9A10:A11:A12 Levels: A1:A2:A3 A10:A11:A12 A4:A5:A6 A7:A8:A9 xxx[yyy[1]] A1:A2:A3 0 Jim On Fri, Jun 12, 2015 at 2:08 PM, David Winsemius wrote: > Cross-posting to SO and Rhelp is deprecated. > > On Jun 11, 2015, at 8:40 PM, Bogdan Tanasa wrote: > >> Dear all, >> >> please could you please with a simple question : I do have an array of 32 >> elements, where each element is indexed by a name : eg : >> >> list_triplet_wells <-c("A1:A2:A3", "A4:A5:A6 ", "A7:A8:A9", "A10:A11:A12 >> ") >> xxx <-array(0, dim=4) >> dimnames(xxx) = list(list_triplet_wells) >> >>> From another script, I have an output like : >> >>> yyy >> [1] A1:A2:A3B4:B5:B6 >> 31 Levels: B4:B5:B6A1:A2:A3 ... F4:F5:F6 >> >> so yyy seems to be a factor type. I would need to call the elements of xxx >> array based on the elements of yyy; eg xxx[yyy]. >> >> How can I do this in order to circumvent the factor type of yyy ? Thanks a >> lot, >> >> bogdan >> >> [[alternative HTML version deleted]] >> > > As is posting in HTML. > >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > David Winsemius > Alameda, CA, USA > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Installing R 2.15.2 on Mac
Hello, I'm trying to install the R integration add on for SPSS version 22 so that I am able to use a specific R extension in SPSS. For this, I have to download an older version of R, version 2.15.2 to my MacBook Pro. When I try to download this older version, it says I cannot install it on my hard-drive because I have to have Mac versions 10.5 or higher (I have version 10.10, Yosemite). I read through the FAQ but I did not come across this topic. Do you have any idea how I could install R version 2.15.2? Or any other ways around this? Thank you kindly, Nicki -- Nicole Yarkovsky, M.A. Ph.D. Candidate, Clinical Psychology University of Windsor yark...@uwindsor.ca [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Two factor nonparametric test
I'm just starting to use R, so my question must be really basic... I need a non parametric test for a two factor (4x3) design. What are the options in R? If someone could tell me the functions names or even some script examples, it would be great. Thank you all =) -- View this message in context: http://r.789695.n4.nabble.com/Two-factor-nonparametric-test-tp4708545.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] memory isuue
Dear All, Using "dist()" function, I have to calculate distance matrix for large dataset (2,00,000*23) but problem of memory issue came. I had already try by break of data into small and this idea is work but take more time, So I want some other which reduce time. Try to help me to solve out using parallel package (ff or others) or any other way. Thank you, Pinkal Patel [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Marascuilo procedure
Your question is about statistics, not R. Do read the Posting Guide to inform you for future questions. Meanwhile, you should probably go to stats.stackexchange.com. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. On June 12, 2015 10:39:55 AM PDT, MyList wrote: >Hello All, > >I am new to R and statistics.Pardon me if this a trivial question. > >Can the Marascuilo procedure be applied to a 2 x c contingency table >with c equal to 2 ? > >My understanding is that it is used to compare proportion between two >variables and see which pairs are more significant to make the null >hypothesis be rejected. Is this understanding correct? > >Also, what post hoc tests can be used on categorical data using R. Can >someone lead me to examples or links. I am interested in finding once >the Null Hypothesis is rejected then which of the categories are >influencing. > >Null hypothesis (Ho) could be like - old ppl do not do more research >before visiting a doctor.once Ho is rejected I want to find if out of >old or young who actually do more research. > >I am currently on a project on hypothesis testing , market survey >categorical data based designed on a 7 scale lickert analysis. > >Thanks in Advance. > >- Harmeet >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] problem in auto run iteration in R2OpenBUGS
Hi for all members in R community I have a small problem in the code below when i call OpenBUGS #Call OpenBUGS model= bugs(data, inits, parameters.to.save=parameters, model.file="D:/Run/model.txt", n.iter=5000, n.burnin=0, OpenBUGS.pgm = "C:/Program Files/OpenBUGS/OpenBUGS323/OpenBUGS.exe", working.directory="D:/Run/", n.thin=2, n.chains=2, debug=TRUE, DIC=TRUE) The problem is when the first iteration finish it stop directly without rerun the second iteration so how can i run the iterations automatically. Many thanks in advance -- Thanoon Y. Thanoon PhD Candidate Department of Mathematical Sciences Faculty of Science University Technology Malaysia, UTM E.Mail: thanoon.youni...@gmail.com E.Mail: dawn_praye...@yahoo.com Facebook:Thanoon Younis AL-Shakerchy Twitter: Thanoon Alshakerchy H.P:00601127550205 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Marascuilo procedure
Hello All, I am new to R and statistics.Pardon me if this a trivial question. Can the Marascuilo procedure be applied to a 2 x c contingency table with c equal to 2 ? My understanding is that it is used to compare proportion between two variables and see which pairs are more significant to make the null hypothesis be rejected. Is this understanding correct? Also, what post hoc tests can be used on categorical data using R. Can someone lead me to examples or links. I am interested in finding once the Null Hypothesis is rejected then which of the categories are influencing. Null hypothesis (Ho) could be like - old ppl do not do more research before visiting a doctor.once Ho is rejected I want to find if out of old or young who actually do more research. I am currently on a project on hypothesis testing , market survey categorical data based designed on a 7 scale lickert analysis. Thanks in Advance. - Harmeet __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Missing Values in Table Statement
Maybe it will help if I create some fake data to illustrate what I think you want: set.seed(25) tmp <- data.frame(origin=sample( letters[1:3], 25, replace=TRUE), schd= sample( 1:5, 25, replace=TRUE) ) tmp$schd[ c(5,7,18,22) ] <- NA print(tmp) table( tmp$origin, is.na(tmp$schd)) FALSE TRUE a 91 b 62 c 61 ## a little fancier table( tmp$origin, ifelse(is.na(tmp$schd),'missing','available')) available missing a 9 1 b 6 2 c 6 1 For example, for schedule "b" there are 6 instances for which the sched time has been entered and 2 where it has not. In this example, the table() function is working correctly. I don't think anyone understands what is wrong with the output you are getting. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 6/11/15, 11:27 PM, "Shivi82" wrote: >Hi Petr, > >Probably i did not explain my scenario clearly. > table(test$ORIGIN_NAME,is.na(test$SCH_TIME)) is the syntax with which i >am >trying to find per destination wise how many instances are there where >system failed to enter the scheduled delivery time & there are multiple >cases of these. I am expecting an output where TRUE and FALSE will give >number of observations either missing or non-missing. > >ORIGIN ORIGIN_NAME DESTINATION DESTINATION_NM RPS_NO >DLI11DELHI-11 NDA50 NOIDA-50 > >1350760 >NDA50NOIDA-50 DLI11DELHI-11 > >1352692 > > >SCH_TIME ACTUAL_DEP_DATE ACTUAL_DEP_TIME WAYBILLS TOTAL_PKG ACTUAL_WT >CHG_WT >6:00 13/03/20156:30 - > >0 00 >21:30 15/03/2015 13:37 28 > >256 3419 3730 > > >Hopefully i am able to make my self now clear. Thank you. > > > > > > > >-- >View this message in context: >http://r.789695.n4.nabble.com/Missing-Values-in-Table-Statement-tp4708534p >4708537.html >Sent from the R help mailing list archive at Nabble.com. > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Help with abs function
FAQ 7.31 --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. On June 12, 2015 8:39:48 AM PDT, "Nelson, Gary (MISC)" wrote: >I have come across some odd behavior (to me) using the abs() function >that I wonder if anyone can explain. > >Using R version 3.2.0, I created a vector of absolute values using >the following code: > >> tran<-c(7.2) >> tgrid<-c(7.1,7.4,7.3,7.1,7.3) >> dgrid<-abs(tgrid-tran) >> dgrid >[1] 0.1 0.2 0.1 0.1 0.1 > >When I tried to extract just the rows with values>0.1, I get > >> dgrid[dgrid>0.1] >[1] 0.1 0.2 0.1 > >There should be only 1 value extracted. > >However, if I enter the values by hand > >> bgrid<-c(0.1,0.2,0.1,0.1,0.1) >> bgrid >[1] 0.1 0.2 0.1 0.1 0.1 >> bgrid[bgrid>0.1] >[1] 0.2 > >The result is correct. So why is this happening? > >I did explore a little bit and found > >> as.character(dgrid) >[1] "0.101" "0.2" >[3] "0.0996" "0.101" >[5] "0.0996" > >which shows the absolute values of the negative differences are >slightly greater than the difference of 0.1 > >Is this normal behavior for the abs() function? > >Thanks, > >Gary Nelson > > [[alternative HTML version deleted]] > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Help with abs function
Please read R FAQ 7.31. On Fri, Jun 12, 2015 at 11:39 AM, Nelson, Gary (MISC) wrote: > I have come across some odd behavior (to me) using the abs() function that I > wonder if anyone can explain. > > Using R version 3.2.0, I created a vector of absolute values using the > following code: > >> tran<-c(7.2) >> tgrid<-c(7.1,7.4,7.3,7.1,7.3) >> dgrid<-abs(tgrid-tran) >> dgrid > [1] 0.1 0.2 0.1 0.1 0.1 > > When I tried to extract just the rows with values>0.1, I get > >> dgrid[dgrid>0.1] > [1] 0.1 0.2 0.1 > > There should be only 1 value extracted. > > However, if I enter the values by hand > >> bgrid<-c(0.1,0.2,0.1,0.1,0.1) >> bgrid > [1] 0.1 0.2 0.1 0.1 0.1 >> bgrid[bgrid>0.1] > [1] 0.2 > > The result is correct. So why is this happening? > > I did explore a little bit and found > >> as.character(dgrid) > [1] "0.101" "0.2" > [3] "0.0996" "0.101" > [5] "0.0996" > > which shows the absolute values of the negative differences are slightly > greater than the difference of 0.1 > > Is this normal behavior for the abs() function? > > Thanks, > > Gary Nelson -- Sarah Goslee http://www.functionaldiversity.org __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Help with abs function
I have come across some odd behavior (to me) using the abs() function that I wonder if anyone can explain. Using R version 3.2.0, I created a vector of absolute values using the following code: > tran<-c(7.2) > tgrid<-c(7.1,7.4,7.3,7.1,7.3) > dgrid<-abs(tgrid-tran) > dgrid [1] 0.1 0.2 0.1 0.1 0.1 When I tried to extract just the rows with values>0.1, I get > dgrid[dgrid>0.1] [1] 0.1 0.2 0.1 There should be only 1 value extracted. However, if I enter the values by hand > bgrid<-c(0.1,0.2,0.1,0.1,0.1) > bgrid [1] 0.1 0.2 0.1 0.1 0.1 > bgrid[bgrid>0.1] [1] 0.2 The result is correct. So why is this happening? I did explore a little bit and found > as.character(dgrid) [1] "0.101" "0.2" [3] "0.0996" "0.101" [5] "0.0996" which shows the absolute values of the negative differences are slightly greater than the difference of 0.1 Is this normal behavior for the abs() function? Thanks, Gary Nelson [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] accessing the ellements in an array and factors.
Thanks Jim ! also found a second way to do by using as.character() eg : as.character(yyy). On Fri, Jun 12, 2015 at 3:06 AM, Jim Lemon wrote: > Hi Bogdan, > I seem to be able to do it like this: > > xxx <-array(0, dim=4) > dimnames(xxx) = list(list_triplet_wells) > xxx >A1:A2:A3 A4:A5:A6 A7:A8:A9 A10:A11:A12 > 0 0 0 0 > yyy<-factor(c("A1:A2:A3", "A4:A5:A6 ", "A7:A8:A9", "A10:A11:A12")) > yyy > [1] A1:A2:A3A4:A5:A6A7:A8:A9A10:A11:A12 > Levels: A1:A2:A3 A10:A11:A12 A4:A5:A6 A7:A8:A9 > xxx[yyy[1]] > A1:A2:A3 >0 > > Jim > > > On Fri, Jun 12, 2015 at 2:08 PM, David Winsemius > wrote: > > Cross-posting to SO and Rhelp is deprecated. > > > > On Jun 11, 2015, at 8:40 PM, Bogdan Tanasa wrote: > > > >> Dear all, > >> > >> please could you please with a simple question : I do have an array of > 32 > >> elements, where each element is indexed by a name : eg : > >> > >> list_triplet_wells <-c("A1:A2:A3", "A4:A5:A6 ", "A7:A8:A9", > "A10:A11:A12 > >> ") > >> xxx <-array(0, dim=4) > >> dimnames(xxx) = list(list_triplet_wells) > >> > >>> From another script, I have an output like : > >> > >>> yyy > >> [1] A1:A2:A3B4:B5:B6 > >> 31 Levels: B4:B5:B6A1:A2:A3 ... F4:F5:F6 > >> > >> so yyy seems to be a factor type. I would need to call the elements of > xxx > >> array based on the elements of yyy; eg xxx[yyy]. > >> > >> How can I do this in order to circumvent the factor type of yyy ? > Thanks a > >> lot, > >> > >> bogdan > >> > >> [[alternative HTML version deleted]] > >> > > > > As is posting in HTML. > > > >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > >> https://stat.ethz.ch/mailman/listinfo/r-help > >> PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > >> and provide commented, minimal, self-contained, reproducible code. > > > > David Winsemius > > Alameda, CA, USA > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Missing Values in Table Statement
If possible always supply data in dput() form. John Kane Kingston ON Canada > Kindly let me know if i need to supply dput data. Thank you!!! FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Views installation
On Fri, 12 Jun 2015, Partha Sinha wrote: I want to install views like machine learning and Bayesian using code ( write code and running the code once and it will install all packages in those views rather than doing it twice). Pl help I'm not sure what exactly you are looking for but ctv::update.views(c("Bayesian", "MachineLearning")) should get everything installed. Parth __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Missing Values in Table Statement
Hi Petr, Please see the output from dget as follows. ORIGIN ORIGIN_NAME DESTINATION DESTINATION_NM RPS_NO VENDOR_NAME CR_DT SCHD_MRKT VHL_NO vhl_cap 1 DLI11DELHI-11 NDA50NOIDA-50 1350760 RAJIV GAUTAM 13-Mar-15 SCHEDULE HR63A0931 8 2 DLI11DELHI-11 NDA50NOIDA-50 1366368 RAJIV GAUTAM 31-Mar-15 SCHEDULE HR63A0931 8 3 NDA50NOIDA-50 DLI11DELHI-11 1352692 RAJIV GAUTAM 15-Mar-15 SCHEDULE HR63A0931 8 4 NDA50NOIDA-50 NDA11NOIDA-11 1354642 RAJIV GAUTAM 17-Mar-15MARKET HR63A0931 8 5 NDA50NOIDA-50 DLI11DELHI-11 1354642 RAJIV GAUTAM 17-Mar-15MARKET HR63A0931 8 SCH_TIME ACTUAL_DEP_DATE ACTUAL_DEP_TIME WAYBILLS TOTAL_PKG ACTUAL_WT CHG_WT RTE_CD 1 6:00 13/03/20156:30- 0 0 0 DELHI-11-NOIDA-50(DLI11-NDA50) 2 6:00 31/03/20154:05- 0 0 0 DELHI-11-NOIDA-50(DLI11-NDA50) 321:30 15/03/2015 13:37- 0 0 0 NOIDA-50-DELHI-11(NDA50-DLI11) 4 17/03/2015 20:15340 744 770NOIDA-50-DELHI-11(NDA50-NDA11-DLI11) 5 17/03/2015 20:15 28 256 3419 3730NOIDA-50-DELHI-11(NDA50-NDA11-DLI11) -- View this message in context: http://r.789695.n4.nabble.com/Missing-Values-in-Table-Statement-tp4708534p4708540.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Views installation
I want to install views like machine learning and Bayesian using code ( write code and running the code once and it will install all packages in those views rather than doing it twice). Pl help Parth __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.