This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% ASR Formatted Bibliography using BibTeX and the Tufte document style | |
%% requires the American Sociological Review .bst file - http://people.ku.edu/~chkim/etc/asr.bst | |
%% requires a properly formatted .bib file | |
%% requires that the key inserted below matches a key in that .bib file | |
\documentclass[nobib]{tufte-handout} | |
\usepackage{chicago} | |
\begin{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// Minimal Working Example - Dependent Sample T-Test Plot | |
// ========================================================================== | |
// standard opening options | |
version 14 | |
log close _all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
mpg %>% | |
mutate(foreign = ifelse(manufacturer == "audi" | | |
manufacturer == "honda" | | |
manufacturer == "hyundai" | | |
manufacturer == "land rover" | | |
manufacturer == "nissan" | | |
manufacturer == "subaru" | | |
manufacturer == "toyota" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reprex of issues related to working with paired data | |
## dependencies | |
library(stlData) | |
library(dplyr) | |
library(ggplot2) | |
library(tidyr) | |
## data preparation | |
income <- stlIncome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Correlation Table Output | |
# Function for producing corrleation table output with statistical significance symbols | |
# Dependencies: | |
# the following packages must be installed within R - dplyr, Hmsic, rlang | |
# Parameters: | |
# .data - A tbl | |
# coef - Type of correlation coefficient to be calculated (Pearson's r or Spearman's rho) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(stargazer) | |
# load data | |
autoData <- mpg | |
# create correlation table | |
# requires that the corrTable function is available in your global environment | |
output <- corrTable(autoData, coef = "pearson", listwise = TRUE, round = 3, pStar = TRUE, cyl, cty, hwy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Week-12 Lecture" | |
output: html_notebook | |
--- | |
## Introduction | |
This is the sample code for Week 12's lecture. | |
## Dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\title{} | |
\author{} | |
\date{} | |
\begin{document} | |
\maketitle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@book{fisher1937design, | |
title="The design of experiments", | |
author="Fisher, Ronald Aylmer", | |
year="1937", | |
address="London, UK", | |
publisher= "Oliver and Boyd" | |
} | |
@article{mcgill1978variations, | |
title={Variations of box plots}, | |
author={McGill, Robert and Tukey, John W and Larsen, Wayne A}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(dplyr) | |
# load data | |
autoData <- mpg | |
# subset to create data frame with only variables of interest for scale | |
autoSubset <- select(autoData, cyl, cty, hwy) | |
# visually inspect cronbach's alpha results |
OlderNewer