Blog Archives

RStudio in the cloud with Amazon Lightsail and docker

December 1, 2016
By
RStudio in the cloud with Amazon Lightsail and docker

About two years ago we published a quick and easy guide to setting up your own RStudio server in the cloud using the Docker service and Digital Ocean. The process is incredibly easy-- about the only cumbersome part is retyping a random password. Toda...

Read more »

Set up RStudio in the cloud to work with GitHub

January 17, 2016
By
Set up RStudio in the cloud to work with GitHub

I love GitHub for version control and collaboration, though I'm no master of it. And the tools for integrating git and GitHub with RStudio are just amazing boons to productivity. Unfortunately, my University-supplied computer does not play well with ...

Read more »

Write in-line equations in your Shiny application with MathJax

December 30, 2015
By
Write in-line equations in your Shiny application with MathJax

I've been working on a Shiny app and wanted to display some math equations. It's possible to use LaTeX to show math using MathJax, as shown in this example from the makers of Shiny. However, by default, MathJax does not allow in-line equations, becau...

Read more »

Write in-line equations in your Shiny application with MathJax

December 30, 2015
By
Write in-line equations in your Shiny application with MathJax

I've been working on a Shiny app and wanted to display some math equations. It's possible to use LaTeX to show math using MathJax, as shown in this example from the makers of Shiny. However, by default, MathJax does not allow in-line equations, because the dollar sign is used so frequently. But I needed to use in-line math in my application. Fortunately, the folks who make MathJax show how to…

Read more »

Write in-line equations in your Shiny application with MathJax

December 30, 2015
By
Write in-line equations in your Shiny application with MathJax

I've been working on a Shiny app and wanted to display some math equations. It's possible to use LaTeX to show math using MathJax, as shown in this example from the makers of Shiny. However, by default, MathJax does not allow in-line equations, because the dollar sign is used so frequently. But I needed to use in-line math in my application. Fortunately, the folks who make MathJax show how to…

Read more »

Example 2015.1: Time to refinance?

January 5, 2015
By
Example 2015.1: Time to refinance?

In the US, it's typical to borrow a fairly substantial portion of the cost of a new house from a bank. The cost of these loans, the mortgage rate, varies over time depending on what the financial wizards see in their crystal balls. What this means ov...

Read more »

RStudio in the cloud for dummies, 2014/2015 edition

December 2, 2014
By
RStudio in the cloud for dummies, 2014/2015 edition

In 2012, we presented a post showing how to run RStudio in the cloud on an Amazon server. There were 7 steps, including one with 7 sub-steps, one of which had 6 sub-sub-steps. It was still pretty easy, for what it was-- an effectively free computer i...

Read more »

Example 2014.12: Changing repeated measures data from wide to narrow format

October 21, 2014
By
Example 2014.12: Changing repeated measures data from wide to narrow format

Data with repeated measures often come to us in the "wide" format, as shown below for the HELP data set we use in our book. Here we show just an ID, the CESD depression measure from four follow-up assessments, plus the baseline CESD. Obs ID CESD...

Read more »

Example 2014.11: Contrasts the basic way for R

September 30, 2014
By
Example 2014.11: Contrasts the basic way for R

As we discuss in section 6.1.4 of the second edition, R and SAS handle categorical variables and their parameterization in models quite differently. SAS treats them on a procedure-by-procedure basis, which leads to some odd differences in capabilities...

Read more »

Example 2014.10: Panel by a continuous variable

August 18, 2014
By
Example 2014.10: Panel by a continuous variable

In Example 8.40, side-by-side histograms, we showed how to generate histograms for some continuous variable, for each level of a categorical variable in a data set. An anonymous reader asked how we would do this if both the variables were continuous. ...

Read more »


Subscribe

Email:

  Subscribe