Skip to content

Instantly share code, notes, and snippets.

View cmg777's full-sized avatar

Carlos Mendez cmg777

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@cmg777
cmg777 / recreation.R
Last active February 15, 2018 06:15 — forked from thoughtfulbloke/recreation.R
Ggplot2 example of multiple kernel densities
library(atus)
library(dplyr)
library(ggplot2)
library(ggridges)
library(viridisLite)
library(viridis)
data("atusact")
data("atuscps")
data("atusresp")
actions <- c("Relaxing&Thinking", "Tobacco&Drugs", "TV&Movies", "Relgious TV",
@cmg777
cmg777 / stata-and-R
Last active December 4, 2022 05:35
How to use R studio to Write R markdown documents with Stata Commands in a Mac
---
title: "Use R studio to Write Rmardown documents with Stata Commands in a Mac"
output: html_document
---
## Set Up
- Identify the path to the stata executable. In my case this is `/Applications/Stata/StataIC.app/Contents/MacOS/StataIC`.
- Store the path using a normal r chunk :
```{r message=FALSE}