Skip to content

Instantly share code, notes, and snippets.

View mvuorre's full-sized avatar
🐢

Matti Vuorre mvuorre

🐢
View GitHub Profile
@rmcelreath
rmcelreath / data_caring.md
Last active December 31, 2020 19:13
Data sharing, caring and access conventions

Data Sharing, Caring, and Access

Most major scientific journals now require data archiving after publication. Many require it for review. So anthropology must figure out how to responsibly provide access to data. Luckily, other fields have already invested a lot in figured this out.

The important thing to realize is that providing access does not mean complete loss of control, either for the communities that provide the data or for researchers. For example, access can be restricted to researchers affiliated with research institutions, and limits can be placed on rights of reuse. But some level of access is necessary, if for no other reason than to allow other scholars the ability to verify our analyses. At the same time, researchers who want access to data must respect that data are political and continued collaboration with communities that provide data requires privacy and limits on reuse.

A standard data sharing memorandum grants all collaborators non-exclusive use of the data for scientific analysis

App Install Plan

Critical

@khakieconomics
khakieconomics / ppd_plot.R
Created May 19, 2017 18:27
Plotting posterior predictive density
library(ggplot2); library(dplyr)
aa <- data_frame(a = rnorm(30, 2, .1), b = rnorm(30, .5, .05), sigma = rnorm(30, 1, .1))
g <- ggplot(data.frame(x = c(-1, 5.5)), aes(x))
for(i in 1:nrow(aa)) {
g <- g +
stat_function(fun = dnorm, args = list(mean = c(aa$a[i] + aa$b[i]), sd = aa$sigma[i]), alpha = 0.3)
}
g +
@igrigorik
igrigorik / gist:3148848
Created July 20, 2012 05:24
Convert any YouTube video into an audio file you can listen to on the go...
# Convert any YouTube video into an audio file you can listen to on the go, using:
# http://rg3.github.com/youtube-dl/
{ ~ } > brew install ffmpeg
{ ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl
{ ~ } > chmod u+x youtube-dl
# Pick which video format you want to download.. (use any YT video link)
{ ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os