Introduction

This is a basic document made with R Markdown. You can also use reference documents to compile the final product, so they follow the NORC templates.1

Drinking

One question asked “On how many occasions (if any) have you had beer, wine or hard liquor to drink during the past 30 days?”

According to the data, 83 percent never drank. This number was generated from the code and not edited in Word.

Here is a nice formatted table

Frequency table of On how many occasions (if any) have you had beer, wine or hard liquor to drink during the past 30 days?
  Freq Cum.Freq Rel.Freq Cum.Rel.Freq
0 14384 14384 0.828 0.828
01-02 1687 16071 0.097 0.925
03-05 574 16645 0.033 0.958
06-09 278 16923 0.016 0.974
10+ 443 17366 0.026 1

Models

You can also place math equations into the text. Here is a multilevel model

\[ y_{ij} = \gamma_{00} + u_{0j} + e_{ij} \]

Here is a multilevel model set of results

Unconditional multilevel model predicting occasions drinking during the past 30 days
  Model
Constant 3.976***
(0.095)
Between-school variance 0.287
Var(residual) 8.473
Log-likelihood -6648.6
Deviance 13297.1
AIC 13303.1
BIC 13320.8
N 2663

Here is a multilevel model with a predictor

Conditional multilevel model predicting occasions drinking during the past 30 days
  Model
Constant 0.821
(0.569)
Age 0.208***
(0.037)
Between-school variance 0.121
Var(residual) 8.450
Log-likelihood -6621.2
Deviance 13242.4
AIC 13250.4
BIC 13274.0
N 2657

  1. For example, a Word file.