5220 search results for "git"

Compare Regression Results to a Specific Factor Level in R

February 6, 2014
By

Including a series of dummy variables in a regression in R is very simple. For example,ols <- lm(weight ~ Time + Diet, data = ChickWeight)summary(ols) The above regression automatically includes a dummy variable for all but the first level of the factor of the Diet variable.Call:lm(formula = weight ~ Time...

Read more »

Better living through zero-one inflated beta regression

February 6, 2014
By
Better living through zero-one inflated beta regression

Dealing with proportion data on the interval $$ is tricky. I realized this while trying to explain variation in vegetation cover. Unfortunately this is a true proportion, and can’t be made into a binary response. Further, true 0’s and 1’s rule out beta regression. You could arcsine square root transform the data (but shouldn’t; Warton and Hui 2011)....

Read more »

Online R and Plotly Graphs: Canadian and U.S. Maps, Old Faithful with Multiple Axes, & Overlaid Histograms

February 6, 2014
By
Online R and Plotly Graphs: Canadian and U.S. Maps, Old Faithful with Multiple Axes, & Overlaid Histograms

Guest post by Matt Sundquist of plot.ly. Plotly is a social graphing and analytics platform. Plotly’s R library lets you make and share publication-quality graphs online. Your work belongs to you, you control privacy and sharing, and public use is free (like GitHub). We are in beta, and would love your feedback, thoughts, and advice.

Read more »

Using MongoHQ to build a Shiny Hit Counter

February 6, 2014
By

In serveral previous posts I have posted shiny applications which temporarily store data on shiny servers such as hit counters or the survey tool which I created,  These do not work in the long term since shiny will restart its servers without war...

Read more »

R Studio and "Advanced R Development"

February 5, 2014
By
R Studio and "Advanced R Development"

Well, I am tuning back in after a brief hiatus (what's a year-or-two-or-four between friends)?  Among other things, I just wrapped up a book for O'Reilly Media (Client-Server Web Apps with JavaScript and Java) due out in the Spring.   Please ...

Read more »

ggPlot2: Histogram with jittered stripchart

February 5, 2014
By
ggPlot2: Histogram with jittered stripchart

Here is an example of a Histogram plot, with a stripchart (vertically jittered) along the x side of the plot.Alternatively, using the geom_rug function:Of course this simplicistic method need to be adjusted in vertical position of the stripchart or rug...

Read more »

Use Case: Spatial R & Google Earth for Terrain Analyses

February 5, 2014
By
Use Case: Spatial R & Google Earth for Terrain Analyses

I'd like to share code that uses spatial R and Google Earth for terrain analyses. In this example I took SRTM data at 1" resolution from http://www.viewfinderpanoramas.org/dem3.html#alps read it into R did a little processing and finally wrapped it up ...

Read more »

Census Open Atlas Project Version Two

February 5, 2014
By
Census Open Atlas Project Version Two

This time last year I published the first version of the 2011 Census Open Atlas which comprised Output Area Level census maps for each local authority district. This turned out to be quite a popular project, and I have also extended this to Japan. The methods used to construct the atlases have now been refined,...

Read more »

How to upload files to Dropbox and Google Docs from R

February 5, 2014
By
How to upload files to Dropbox and Google Docs from R

Have you ever wondered whether you can upload files from R to Dropbox and/or Google Docs? I recently asked myself this question while making my most recent Shiny app (more later). The answer is yes, you can upload files from R to these cloud services! Dropbox As far as I know, the best R package for uploading files to...

Read more »

Bayesian First Aid: One Sample and Paired Samples t-test

February 4, 2014
By
Bayesian First Aid: One Sample and Paired Samples t-test

Student’s t-test is a staple of statistical analysis. A quick search on Google Scholar for “t-test” results in 170,000 hits in 2013 alone. In comparison, “Bayesian” gives 130,000 hits while “box plot” results in only 12,500 hits. To be honest, if I had to choose I would most of the time prefer a notched boxplot to...

Read more »