<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>r-statistics - Latest Comments</title><link>http://rstatistics.disqus.com/</link><description>Writing about statistics with R, and open source stuff (software, data, community)</description><atom:link href="https://rstatistics.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 13 Jan 2015 13:01:31 -0000</lastBuildDate><item><title>Re: Creating good looking survival curves &amp;#8211; the &amp;#8216;ggsurv&amp;#8217; function</title><link>http://www.r-statistics.com/2013/07/creating-good-looking-survival-curves-the-ggsurv-function/#comment-1790713319</link><description>&lt;p&gt;Thank you for your question KW87. Answer is unfortunately "no, it is not". Since more people did ask for it I will accommodate for it in upcoming version of ggsurv. Whenever GGally updates. Remind me if you don't see this option appear in a while.&lt;/p&gt;&lt;p&gt;Cheers,&lt;br&gt;Edwin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edwin Thoen</dc:creator><pubDate>Tue, 13 Jan 2015 13:01:31 -0000</pubDate></item><item><title>Re: Creating good looking survival curves &amp;#8211; the &amp;#8216;ggsurv&amp;#8217; function</title><link>http://www.r-statistics.com/2013/07/creating-good-looking-survival-curves-the-ggsurv-function/#comment-1790690898</link><description>&lt;p&gt;It's not perfect, but with a little bit of hacking in the survival object you come a long way. Maybe I'll integrate into upcoming versions. Good luck! Edwin&lt;/p&gt;&lt;p&gt;library(GGally)&lt;/p&gt;&lt;p&gt;library(magrittr)&lt;/p&gt;&lt;p&gt;survival.inverse &amp;lt;- function(sf.object){&lt;/p&gt;&lt;p&gt;  sf.return &amp;lt;- sf.object&lt;/p&gt;&lt;p&gt;  sf.return$surv &amp;lt;- 1 - sf.return$surv&lt;/p&gt;&lt;p&gt;  sf.return$upper &amp;lt;- 1 - sf.return$upper&lt;/p&gt;&lt;p&gt;  sf.return$lower &amp;lt;- 1 - sf.return$lower&lt;/p&gt;&lt;p&gt;  sf.return&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;a href="http://scrape.off.zero" rel="nofollow noopener" target="_blank" title="scrape.off.zero"&gt;scrape.off.zero&lt;/a&gt; &amp;lt;- function(ggsurv.plot){&lt;/p&gt;&lt;p&gt;  ggsurv.plot +&lt;/p&gt;&lt;p&gt;    xlim(.00001, ggsurv.plot$data$time %&amp;gt;% max %&amp;gt;% add(1))&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;sf.lung &amp;lt;- survival::survfit(Surv(time, status) ~ 1, data = lung)&lt;/p&gt;&lt;p&gt;sf.lung.inv &amp;lt;- survival.inverse(sf.lung)&lt;/p&gt;&lt;p&gt;plot1 &amp;lt;- ggsurv(sf.lung.inv)&lt;/p&gt;&lt;p&gt;plot1 %&amp;gt;% &lt;a href="http://scrape.off.zero" rel="nofollow noopener" target="_blank" title="scrape.off.zero"&gt;scrape.off.zero&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://sf.sex" rel="nofollow noopener" target="_blank" title="sf.sex"&gt;sf.sex&lt;/a&gt; &amp;lt;- survival::survfit(Surv(time, status) ~ sex, data = lung)&lt;/p&gt;&lt;p&gt;sf.sex.inv &amp;lt;- survival.inverse(&lt;a href="http://sf.sex" rel="nofollow noopener" target="_blank" title="sf.sex"&gt;sf.sex&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;plot2 &amp;lt;- ggsurv(sf.sex.inv)&lt;/p&gt;&lt;p&gt;plot2 %&amp;gt;% &lt;a href="http://scrape.off.zero" rel="nofollow noopener" target="_blank" title="scrape.off.zero"&gt;scrape.off.zero&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Edwin Thoen</dc:creator><pubDate>Tue, 13 Jan 2015 12:49:05 -0000</pubDate></item><item><title>Re: How to load the {rJava} package after the error &amp;#8220;JAVA_HOME cannot be determined from the Registry&amp;#8221;</title><link>http://www.r-statistics.com/2012/08/how-to-load-the-rjava-package-after-the-error-java_home-cannot-be-determined-from-the-registry/#comment-1790584494</link><description>&lt;p&gt;Bingo! Thanks... worked.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shiv</dc:creator><pubDate>Tue, 13 Jan 2015 11:50:53 -0000</pubDate></item><item><title>Re: Creating good looking survival curves &amp;#8211; the &amp;#8216;ggsurv&amp;#8217; function</title><link>http://www.r-statistics.com/2013/07/creating-good-looking-survival-curves-the-ggsurv-function/#comment-1789341954</link><description>&lt;p&gt;Hi, this is really impressive work. Just wanna ask is it possible to adjust the "censored" dots to the same color as its own curve? That is, make the "male" dots green while the "female" dots keep red at the same time. Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">KW87</dc:creator><pubDate>Mon, 12 Jan 2015 18:21:46 -0000</pubDate></item><item><title>Re: Updating R from R (on Windows) &amp;#8211; using the {installr} package</title><link>http://www.r-statistics.com/?p=60932#comment-1773469752</link><description>&lt;p&gt;Thanks, my pleasure :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tal Galili</dc:creator><pubDate>Mon, 05 Jan 2015 15:26:27 -0000</pubDate></item><item><title>Re: Updating R from R (on Windows) &amp;#8211; using the {installr} package</title><link>http://www.r-statistics.com/?p=60932#comment-1772825232</link><description>&lt;p&gt;I am R (windows) newbie. This package worked very well for me. Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DataElephant</dc:creator><pubDate>Mon, 05 Jan 2015 11:17:38 -0000</pubDate></item><item><title>Re: Edimax EW-7811Un USB wireless – connecting to a network (on ubuntu 11.10)</title><link>http://www.r-statistics.com/2011/11/edimax-ew-7811un-usb-wireless-connecting-to-a-network-on-ubuntu-11-10/#comment-1770271112</link><description>&lt;p&gt;Hi Ajardine,&lt;br&gt;I am happy to know this post (even though it was written over 3 years ago) is still helpful to people :)&lt;/p&gt;&lt;p&gt;Cheers,&lt;br&gt;Tal&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tal Galili</dc:creator><pubDate>Sat, 03 Jan 2015 14:20:02 -0000</pubDate></item><item><title>Re: Edimax EW-7811Un USB wireless – connecting to a network (on ubuntu 11.10)</title><link>http://www.r-statistics.com/2011/11/edimax-ew-7811un-usb-wireless-connecting-to-a-network-on-ubuntu-11-10/#comment-1769494121</link><description>&lt;p&gt;I resurrected an old PC with Xubuntu on the desktop and had exactly these same symptoms - dongle could see the wifi but couldn't connect.  Downloaded Ubuntu on New Years day 2015, so apparently the newest version hasn't corrected the problem natively, I followed these instructions precisely and am connected!  I've rebooted a few times, and things seem to be working perfectly.  (had to use nano -w instead of gedit as default editor).  Haven't been at a command prompt in years, but fixing things up took only an hour or two.  Excellent, Excellent info here!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ajardine</dc:creator><pubDate>Fri, 02 Jan 2015 22:48:38 -0000</pubDate></item><item><title>Re: Analyzing Your Data on the AWS Cloud (with R)</title><link>http://www.r-statistics.com/2013/07/analyzing-your-data-on-the-aws-cloud-with-r/#comment-1764437221</link><description>&lt;p&gt;Not in AWS, or not as far as I know. You could have excel in cloud here &lt;a href="https://www.apponfly.com/en/application/microsoft-excel-2013" rel="nofollow noopener" target="_blank" title="https://www.apponfly.com/en/application/microsoft-excel-2013"&gt;https://www.apponfly.com/en...&lt;/a&gt; but not sure if this is what you are looking for.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilian</dc:creator><pubDate>Tue, 30 Dec 2014 07:54:56 -0000</pubDate></item><item><title>Re: &amp;#8220;The next big thing&amp;#8221;, R, and Statistics in the cloud</title><link>http://www.r-statistics.com/2010/04/r-the-next-big-thing-and-statistics-in-the-cloud/#comment-1762833335</link><description>&lt;p&gt;In hindsight, I can compare R with other products and in my opinion it did not hold up that well. Their marketplace is not that broad and extensive as Azure e.g. has. I miss a bunch of apps. For example, more cloud statistical sw could be included like NCSS &lt;a href="http://www.ncss.com/" rel="nofollow noopener" target="_blank" title="http://www.ncss.com/"&gt;http://www.ncss.com/&lt;/a&gt; &lt;a href="https://www.apponfly.com/en/application/ncss10" rel="nofollow noopener" target="_blank" title="https://www.apponfly.com/en/application/ncss10"&gt;https://www.apponfly.com/en...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Natalia Garber, MBA</dc:creator><pubDate>Mon, 29 Dec 2014 05:23:44 -0000</pubDate></item><item><title>Re: Analyzing Your Data on the AWS Cloud (with R)</title><link>http://www.r-statistics.com/2013/07/analyzing-your-data-on-the-aws-cloud-with-r/#comment-1762812573</link><description>&lt;p&gt;Q: Can I run typical Microsoft apps such as Excel, Word and Powerpoint in AWS cloud?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tyler</dc:creator><pubDate>Mon, 29 Dec 2014 04:58:48 -0000</pubDate></item><item><title>Re: Creating good looking survival curves &amp;#8211; the &amp;#8216;ggsurv&amp;#8217; function</title><link>http://www.r-statistics.com/2013/07/creating-good-looking-survival-curves-the-ggsurv-function/#comment-1757304905</link><description>&lt;p&gt;Dear Edwin, I'm making an "inverse" survival curve using your code. I realized that in order to make such graph, I have to edit the y axis information in your ggplot comments from "y=surv" into "y=1-surv". So if I already installed GGally package, is there any support or suggestion on how to make inverse graph without the need of editing the code?&lt;br&gt;Thank you so much&lt;br&gt;Nguyet&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nguyet M. Nguyen</dc:creator><pubDate>Wed, 24 Dec 2014 01:16:59 -0000</pubDate></item><item><title>Re: Creating good looking survival curves &amp;#8211; the &amp;#8216;ggsurv&amp;#8217; function</title><link>http://www.r-statistics.com/2013/07/creating-good-looking-survival-curves-the-ggsurv-function/#comment-1723396459</link><description>&lt;p&gt;Hey&lt;br&gt;Thanks a lot! Is it also possible to inverse the plot?&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;Nina&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nina</dc:creator><pubDate>Wed, 03 Dec 2014 06:10:59 -0000</pubDate></item><item><title>Re: The dendextend package for visualizing and comparing trees of hierarchical clusterings (slides from useR!2014)</title><link>http://www.r-statistics.com/2014/07/the-dendextend-package-for-visualizing-and-comparing-trees-of-hierarchical-clusterings-slides-from-user2014/#comment-1722542054</link><description>&lt;p&gt;Great work, thanks for putting it out there!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Tue, 02 Dec 2014 15:23:07 -0000</pubDate></item><item><title>Re: Do more with dates and times in R with lubridate 1.1.0</title><link>http://www.r-statistics.com/2012/03/do-more-with-dates-and-times-in-r-with-lubridate-1-1-0/#comment-1714204982</link><description>&lt;p&gt;I did not go through all your post, but your last_day function may have a small bug unless this is what you want:&lt;br&gt;last_day(as.Date('2014-1-1')): "2013-12-31"&lt;br&gt;last_day(as.Date('2014-1-2')): "2014-01-31"&lt;br&gt;A working version might be something like:&lt;br&gt;last_day &amp;lt;- function(date) {&lt;br&gt;    ceiling_date(date+days(1), "month") - days(1)&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob</dc:creator><pubDate>Wed, 26 Nov 2014 14:50:25 -0000</pubDate></item><item><title>Re: Analyzing coverage of R unit tests in packages &amp;#8211; the {testCoverage} package</title><link>http://www.r-statistics.com/2014/11/analyzing-coverage-of-r-unit-tests-in-packages-the-testcoverage-package/#comment-1708141732</link><description>&lt;p&gt;This is good work. I also wrote function-level test coverage in a handful of extra lines presented in this pull request to testthat (in consideration by Hadley Wickham):&lt;br&gt;&lt;a href="https://github.com/jackwasey/testthat" rel="nofollow noopener" target="_blank" title="https://github.com/jackwasey/testthat"&gt;https://github.com/jackwase...&lt;/a&gt; (see R/test-package.r ) I figured at least testing each function would be 90% of the battle. For all the code paths, your package is great, other than masking 'library', 'require' and 'data', which is pretty scary, but maybe unavoidable in your approach.&lt;/p&gt;&lt;p&gt;'trace' is definitely the correct approach since it captures every step, not the sampling approach from 'profile'. Tracing every code path, however, hits performance very hard. Also, there is the danger of forcing the user into spending too much time into over-specifying tests for trivial functions: this could definitely be argued both ways, of course.&lt;/p&gt;&lt;p&gt;It is also implemented as an independent function in &lt;br&gt;&lt;a href="https://github.com/jackwasey/jwutil" rel="nofollow noopener" target="_blank" title="https://github.com/jackwasey/jwutil"&gt;https://github.com/jackwase...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jack</dc:creator><pubDate>Sun, 23 Nov 2014 04:48:27 -0000</pubDate></item><item><title>Re: Analyzing coverage of R unit tests in packages &amp;#8211; the {testCoverage} package</title><link>http://www.r-statistics.com/2014/11/analyzing-coverage-of-r-unit-tests-in-packages-the-testcoverage-package/#comment-1705939020</link><description>&lt;p&gt;Although this makes sense for sure, running the tests are out of the package's scope for some users, and `require` or `library` calls needed to run the testing packages can be found rather in the `.travis.yml` file that has nothing to do with "R CMD check" -- e.g. in my packages. This is on purpose, I do not run tests on "R CMD check" to save resources on CRAN. Anyway, this is a really minor issue, and your package rocks. Can you please look at this issue I opened recently: &lt;a href="https://github.com/MangoTheCat/testCoverage/issues/8" rel="nofollow noopener" target="_blank" title="https://github.com/MangoTheCat/testCoverage/issues/8"&gt;https://github.com/MangoThe...&lt;/a&gt; Thanks, Gergely&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rapporter.net</dc:creator><pubDate>Fri, 21 Nov 2014 14:40:53 -0000</pubDate></item><item><title>Re: Analyzing coverage of R unit tests in packages &amp;#8211; the {testCoverage} package</title><link>http://www.r-statistics.com/2014/11/analyzing-coverage-of-r-unit-tests-in-packages-the-testcoverage-package/#comment-1705820704</link><description>&lt;p&gt;I think it would be an interesting exercise to try to look through inst/tests for packages on CRAN to get an idea of the level of testing on the whole.  I would be curious to see how many authors write tests outside of one of the frameworks mentioned in the article.&lt;/p&gt;&lt;p&gt;With regards to the DESCRIPTION file however whilst I agree that some authors may not list any testing package in the DESCRIPTION file I doubt that many get away without doing so when submitting to CRAN.  Authors *should* be listing packages used for testing under the 'Suggests' field as this is one of the intended purposes of the field.  The 'official' word on this in the 'Writing R Extensions' manual is that: "The ‘Suggests’ field uses the same syntax as ‘Depends’ and lists packages that are not necessarily needed. This includes packages used only in examples, tests or vignettes...".  Additionally, if the test suite loads the testing package via 'require' or 'library' then it will need to be included in one of 'Depends', 'Imports' or 'Suggests' fields in order to pass an R CMD check, which is required for CRAN submission.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Fri, 21 Nov 2014 13:40:07 -0000</pubDate></item><item><title>Re: Analyzing coverage of R unit tests in packages &amp;#8211; the {testCoverage} package</title><link>http://www.r-statistics.com/2014/11/analyzing-coverage-of-r-unit-tests-in-packages-the-testcoverage-package/#comment-1705772963</link><description>&lt;p&gt;What we are trying to achieve with testCoverage (or indeed what the concept of test coverage in general tries to achieve) is a measure of code quality via a simple metric.  When deciding whether to use a package this metric should be taken into consideration along with a number of other factors such as those outlined in the article's introduction.  As you suggest, a really comprehensive test suite would test the same piece of code multiple times with a variety of plausible input arguments but even then the code may still have bugs. So you 100% score on test coverage does not mean that the code works for all scenarios but it does indicate a degree of effort from the author.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Fri, 21 Nov 2014 13:17:29 -0000</pubDate></item><item><title>Re: The ensurer package (validation inside pipes)</title><link>http://www.r-statistics.com/2014/11/the-ensurer-package-validation-inside-pipes/#comment-1704723875</link><description>&lt;p&gt;Will definitely try it! Nice work!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francisco Rodriguez Algarra</dc:creator><pubDate>Fri, 21 Nov 2014 02:52:41 -0000</pubDate></item><item><title>Re: The ensurer package (validation inside pipes)</title><link>http://www.r-statistics.com/2014/11/the-ensurer-package-validation-inside-pipes/#comment-1702194070</link><description>&lt;p&gt;Great work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">josep2</dc:creator><pubDate>Wed, 19 Nov 2014 17:38:40 -0000</pubDate></item><item><title>Re: Updating R from R (on Windows) &amp;#8211; using the {installr} package</title><link>http://www.r-statistics.com/?p=60932#comment-1698687256</link><description>&lt;p&gt;Very useful package! Thanks! All the best!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ravi</dc:creator><pubDate>Tue, 18 Nov 2014 01:34:37 -0000</pubDate></item><item><title>Re: Updating R from R (on Windows) &amp;#8211; using the {installr} package</title><link>http://www.r-statistics.com/?p=60932#comment-1698163520</link><description>&lt;p&gt;Wow! I have to work in Windows now, and your package has made my life sooo much easier!&lt;/p&gt;&lt;p&gt;thank you very much&lt;br&gt;Jarek&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jaroslaw Piskorski</dc:creator><pubDate>Mon, 17 Nov 2014 17:50:02 -0000</pubDate></item><item><title>Re: Creating good looking survival curves &amp;#8211; the &amp;#8216;ggsurv&amp;#8217; function</title><link>http://www.r-statistics.com/2013/07/creating-good-looking-survival-curves-the-ggsurv-function/#comment-1697446766</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Could you show me an example how to plot more than 2 survival curves using your function please?&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guest</dc:creator><pubDate>Mon, 17 Nov 2014 11:47:47 -0000</pubDate></item><item><title>Re: Exporting R output to MS-Word with R2wd (an example session)</title><link>http://www.r-statistics.com/2010/05/exporting-r-output-to-ms-word-with-r2wd-an-example-session/#comment-1681897171</link><description>&lt;p&gt;Thank you for the input Jim. I'll update the post.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tal Galili</dc:creator><pubDate>Fri, 07 Nov 2014 15:22:33 -0000</pubDate></item></channel></rss>