This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 - Independent Sample T-Test Plot | |
// ========================================================================== | |
// standard opening options | |
version 14 | |
log close _all |
This file contains hidden or 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 - One Sample T-Test Plot | |
// ========================================================================== | |
// standard opening options | |
version 14 | |
log close _all |
This file contains hidden or 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 hidden or 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 | |
%% 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{book} | |
\usepackage{chicago} | |
\begin{document} |
NewerOlder