Simple demonstration stencil for R

A very simple little stencil for use in a R context. It has some paragraphs, inline math, equations, as well as execute and text directives

# Introduction

Pearson's correlation coefficient when applied to a population is commonly represented by the Greek letter (rho) and may be referred to as the population correlation coefficient or the population Pearson correlation coefficient. The formula for is:

# Methods

x <- 1:100 y <- x + rnorm(length(x),0,10) cor_est <- cor(x,y)

This stencil creates two variables, , the series of numbers and , which is linearly related to with normally distributed errors,

# Results

The correlation between and was 0.951.