Re: [R] windows 11
Hello, Yes, it does. I'm writing this on Windows 11 and my version of R is R.version.string # [1] "R version 4.2.0 (2022-04-22 ucrt)" Hope this helps, Rui Barradas Às 11:11 de 28/05/2022, Dennis Weygand escreveu: Does the current R run on Windows 11? D.P. Weygand [[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] Circular Graph Recommendation Request
Very nice plot. Thanks for sharing. Can't help directly, but as the plot is sort of a map with polygonal areas encoding the value of a variable, you might try posting on r-sig-geo instead where there might be more relevant expertise in such things -- or perhaps suggestions for alternative visualizations that work similarly. 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 Sat, May 28, 2022 at 8:39 AM Stephen H. Dawson, DSL via R-help wrote: > > https://www.visualcapitalist.com/us-goods-exports-by-state/ > Visualizing U.S. Exports by State > > Good Morning, > > > https://www.visualcapitalist.com/wp-content/uploads/2022/05/us-exports-by-state-infographic.jpg > > Saw an impressive graph today. Sharing with the list. > > The size proportionality of the state segments in a circle graph is catchy. > > QUESTION > Is there a package one could use with R to accomplish this particular > circular-style graph? > > > Kindest Regards, > -- > *Stephen Dawson, DSL* > /Executive Strategy Consultant/ > Business & Technology > +1 (865) 804-3454 > http://www.shdawson.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.
[R] bootstrap CI of the difference between 2 Cramer's V
Dear R-experts, While comparing groups, it is better to assess confidence intervals of those differences rather than comparing confidence intervals for each group. I am trying to calculate the CIs of the difference between the two Cramer's V and not the CI to the estimate of each group’s Cramer's V. Here below my toy R example. There are error messages. Any help would be highly appreciated. ## library(questionr) library(boot) gender1<-c("M","F","F","F","M","M","F","F","F","M","M","F","M","M","F","M","M","F","M","F","F","F","M","M","M","F","F","M","M","M","F","M","F","F","F","M","M","F","M","F") color1<-c("blue","green","black","black","green","green","blue","blue","green","black","blue","green","blue","black","black","blue","green","blue","green","black","blue","blue","black","black","green","green","blue","green","black","green","blue","black","black","blue","green","green","green","blue","blue","black") gender2<-c("F","F","F","M","M","F","M","M","M","F","F","M","F","M","F","F","M","M","M","F","M","M","M","F","F","F","M","M","M","F","M","M","M","F","F","F","M","F","F","F") color2<-c("green","blue","black","blue","blue","blue","green","blue","green","black","blue","black","blue","blue","black","blue","blue","green","blue","black","blue","blue","black","black","green","blue","black","green","blue","green","black","blue","black","blue","green","blue","green","green","blue","black") f1=data.frame(gender1,color1) tab1<-table(gender1,color1) e1<-cramer.v(tab1) f2=data.frame(gender2,color2) tab2<-table(gender2,color2) e2<-cramer.v(tab2) f3<-data.frame(e1-e2) cramerdiff=function(x,w){ y<-tapply(x[w,1], x[w,2],cramer.v) y[1]-y[2] } results<-boot(data=f3,statistic=cramerdiff,R=2000) results boot.ci(results,type="all") ## __ 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] Circular Graph Recommendation Request
Thanks for your help. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 5/28/22 14:38, Lucas Heber Mariano Dos Santos wrote: Here another one https://rpubs.com/StevenDuttRoss/voronoiTreemap -Original Message- From: Stephen H. Dawson, DSL Sent: Saturday, May 28, 2022 3:37 PM To: Lucas Heber Mariano Dos Santos ; Bert Gunter Cc: r-help Subject: Re: [R] Circular Graph Recommendation Request Thank you, Lucas! Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 5/28/22 14:33, Lucas Heber Mariano Dos Santos wrote: That`s voronoi tremap Here a tutorial to get you started https://www.stat.auckland.ac.nz/~paul/Reports/VoronoiTreemap/voronoiTr eeMap.html -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Saturday, May 28, 2022 1:10 PM To: Bert Gunter Cc: r-help Subject: Re: [R] Circular Graph Recommendation Request Thanks, Bert. Will do. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 5/28/22 11:55, Bert Gunter wrote: Very nice plot. Thanks for sharing. Can't help directly, but as the plot is sort of a map with polygonal areas encoding the value of a variable, you might try posting on r-sig-geo instead where there might be more relevant expertise in such things -- or perhaps suggestions for alternative visualizations that work similarly. 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 Sat, May 28, 2022 at 8:39 AM Stephen H. Dawson, DSL via R-help wrote: https://www.visualcapitalist.com/us-goods-exports-by-state/ Visualizing U.S. Exports by State Good Morning, https://www.visualcapitalist.com/wp-content/uploads/2022/05/us-expor t s-by-state-infographic.jpg Saw an impressive graph today. Sharing with the list. The size proportionality of the state segments in a circle graph is catchy. QUESTION Is there a package one could use with R to accomplish this particular circular-style graph? Kindest Regards, -- *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.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. __ 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] Circular Graph Recommendation Request
That`s voronoi tremap Here a tutorial to get you started https://www.stat.auckland.ac.nz/~paul/Reports/VoronoiTreemap/voronoiTreeMap.html -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Saturday, May 28, 2022 1:10 PM To: Bert Gunter Cc: r-help Subject: Re: [R] Circular Graph Recommendation Request Thanks, Bert. Will do. Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 5/28/22 11:55, Bert Gunter wrote: > Very nice plot. Thanks for sharing. > Can't help directly, but as the plot is sort of a map with polygonal > areas encoding the value of a variable, you might try posting on > r-sig-geo instead where there might be more relevant expertise in such > things -- or perhaps suggestions for alternative visualizations that > work similarly. > > 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 Sat, May 28, 2022 at 8:39 AM Stephen H. Dawson, DSL via R-help > wrote: >> https://www.visualcapitalist.com/us-goods-exports-by-state/ >> Visualizing U.S. Exports by State >> >> Good Morning, >> >> >> https://www.visualcapitalist.com/wp-content/uploads/2022/05/us-export >> s-by-state-infographic.jpg >> >> Saw an impressive graph today. Sharing with the list. >> >> The size proportionality of the state segments in a circle graph is catchy. >> >> QUESTION >> Is there a package one could use with R to accomplish this particular >> circular-style graph? >> >> >> Kindest Regards, >> -- >> *Stephen Dawson, DSL* >> /Executive Strategy Consultant/ >> Business & Technology >> +1 (865) 804-3454 >> http://www.shdawson.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. __ 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] Circular Graph Recommendation Request
Here another one https://rpubs.com/StevenDuttRoss/voronoiTreemap -Original Message- From: Stephen H. Dawson, DSL Sent: Saturday, May 28, 2022 3:37 PM To: Lucas Heber Mariano Dos Santos ; Bert Gunter Cc: r-help Subject: Re: [R] Circular Graph Recommendation Request Thank you, Lucas! Kindest Regards, *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 5/28/22 14:33, Lucas Heber Mariano Dos Santos wrote: > That`s voronoi tremap > Here a tutorial to get you started > https://www.stat.auckland.ac.nz/~paul/Reports/VoronoiTreemap/voronoiTr > eeMap.html > > > > -Original Message- > From: R-help On Behalf Of Stephen H. > Dawson, DSL via R-help > Sent: Saturday, May 28, 2022 1:10 PM > To: Bert Gunter > Cc: r-help > Subject: Re: [R] Circular Graph Recommendation Request > > Thanks, Bert. Will do. > > > Kindest Regards, > *Stephen Dawson, DSL* > /Executive Strategy Consultant/ > Business & Technology > +1 (865) 804-3454 > http://www.shdawson.com > > > On 5/28/22 11:55, Bert Gunter wrote: >> Very nice plot. Thanks for sharing. >> Can't help directly, but as the plot is sort of a map with polygonal >> areas encoding the value of a variable, you might try posting on >> r-sig-geo instead where there might be more relevant expertise in such >>things -- or perhaps suggestions for alternative visualizations >> that work similarly. >> >> 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 Sat, May 28, 2022 at 8:39 AM Stephen H. Dawson, DSL via R-help >> wrote: >>> https://www.visualcapitalist.com/us-goods-exports-by-state/ >>> Visualizing U.S. Exports by State >>> >>> Good Morning, >>> >>> >>> https://www.visualcapitalist.com/wp-content/uploads/2022/05/us-expor >>> t >>> s-by-state-infographic.jpg >>> >>> Saw an impressive graph today. Sharing with the list. >>> >>> The size proportionality of the state segments in a circle graph is catchy. >>> >>> QUESTION >>> Is there a package one could use with R to accomplish this >>> particular circular-style graph? >>> >>> >>> Kindest Regards, >>> -- >>> *Stephen Dawson, DSL* >>> /Executive Strategy Consultant/ >>> Business & Technology >>> +1 (865) 804-3454 >>> http://www.shdawson.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. __ 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] Calling stargazer() with do.call() in R 4.2.0
Dear Andrew Thanks a lot for investigating the problem and for suggesting a solution and a workaround! I have asked the maintainer of the 'stargazer' package to fix the problem. Until then, we can use the workaround that you suggested. Best regards, Arne On Sat, 28 May 2022 at 23:13, Andrew Simmons wrote: > > Hello, > > > I don't have the slightest clue what stargazer is supposed to be > doing, but it seems as though it's trying to create names for the ... > list using: > object.names.string <- deparse(substitute(list(...))) > > It makes an error in assuming that the return value of deparse will be > a character string. For stargazer(res), object.names.string becomes: > "list(res)" > > while for do.call(stargazer, list(res)), object.names.string becomes: > [1] "list(structure(list(coefficients = c(`(Intercept)` = > 6.41594246095523, " > [2] "UrbanPop = 0.0209346588197249), residuals = c(Alabama = > 5.56984732750071, " > [3] "Alaska = 2.57919391569797, Arizona = 0.009284833466778, Arkansas > = 1.33732459805853, " > [4] "California = 0.679003586449805, Colorado = -0.148845848893771, " > [5] "Connecticut = -4.72791119007405, Delaware = -2.02323789597542, " > [6] "Florida = 7.30928483346678, Georgia = 9.72797800986128, Hawaii = > -2.8535191429924, " > [7] "Idaho = -4.94641403722037, Illinois = 2.2464808570076, Indiana = > -0.576695284237348, " > [8] "Iowa = -5.40921801367955, Kansas = -1.79762994305707, Kentucky = > 2.19545528041907, " > [9] "Louisiana = 7.60237005694293, Maine = -5.3836100607612, Maryland > = 3.4814353981232, " > [ reached getOption("max.print") -- omitted 110 entries ] > > perhaps the package maintainer could change the line from: > object.names.string <- deparse(substitute(list(...))) > to: > object.names.string <- deparse1(substitute(list(...)), collapse = "") > > or you could change your code to: > do.call(stargazer, alist(res)) > > please note that using alist instead of list is only a workaround, you > should still let the package maintainer know of this bug. If the > maintainer asks, this is what I used to get the strings above: > fun <- \(...) deparse(substitute(list(...))) > data("USArrests") > res <- lm( Murder ~ UrbanPop, data = USArrests) > fun(res) > print(do.call("fun", list(res)), max = 9) > > On Sat, May 28, 2022 at 4:41 PM Arne Henningsen > wrote: > > > > On Sat, 28 May 2022 at 01:21, Uwe Ligges > > wrote: > > > On 27.05.2022 17:29, Arne Henningsen wrote: > > >> Dear all (cc Marek = maintainer of the stargazer package) > > >> > > >> We use do.call() to automatically create many LaTeX tables with > > >> stargazer but after upgrading to R 4.2.0, this no longer works. I > > >> illustrate this with a simple reproducible example: > > >> > > >> R> data("USArrests") > > >> R> res <- lm( Murder ~ UrbanPop, data = USArrests ) > > >> R> library(stargazer) > > >> R> stargazer(res) # works as expected > > >> R> do.call( stargazer, list(res) ) > > >> Error in if (is.na(s)) { : the condition has length > 1 > > > > > > Without looking at the code in detail: The line aboce suggests the code > > > needs an any():if(any(is.na(x))) raher than if(is.na(x)). > > > > Yes, this is likely a problem in the 'stargazer' package. > > > > ... but why does the problem occur when using do.call( stargazer, ) > > but the problem does *not* occur when using stargazer() directly? > > > > Best regards, > > Arne > > > > >> Any ideas what we can do so that the last command works with R 4.2.0? > > >> > > >> /Arne > > > > -- > > Arne Henningsen > > http://www.arne-henningsen.name > > > > __ > > 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. -- Arne Henningsen http://www.arne-henningsen.name __ 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.