Skip to content

Instantly share code, notes, and snippets.

@nstjhp
nstjhp / rstan_test_script.R
Created March 2, 2021 18:43 — forked from rasmusab/rstan_test_script.R
A short script you can use to test if rstan is installed and working correctly.
# Prior to the tutorial make sure that the script below runs without error on your R installation.
# What you need is a working installation of Stan: http://mc-stan.org/ .
# For installation instructions, see here:
# https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started
# After installation you should be able to run this script which should output
# some summary statistics and some pretty plots, :)
# Generating some fake data
set.seed(123)
/* Adapted from a .css file that is Copyright (c) 2009-2013 Jeremy Ashkenas
* https://github.com/jashkenas/docco
* NP modified 02/03/14
* MIT licence */
/*--------------------- Typography ----------------------------*/
@font-face {
font-family: 'fleurons';
src: url('http://jashkenas.github.io/docco/resources/linear/public/fonts/fleurons.eot');
src: url('http://jashkenas.github.io/docco/resources/linear/public/fonts/fleurons.eot?#iefix') format('embedded-opentype'),
{
"metadata": {
"name": "plos_one_analysis"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{