-
Notifications
You must be signed in to change notification settings - Fork 1
/
appx_tbl1_olra.Rmd
34 lines (30 loc) · 998 Bytes
/
appx_tbl1_olra.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "Ordinal Logistic Regression (Preliminary Analysis)"
output: html_notebook
---
```{r}
require(foreign)
require(ggplot2)
require(MASS)
require(rms)
require(Hmisc)
require(reshape2)
```
# First Stage
```{r}
dat1 <- read.dta("./data/olra_data/1st.dta")
m1 <- orm(gold ~ benjoyment + binterest + bsurprise + bfear + btension + bsatisfaction + safety + comfort + enjoyment + interest + surprise + fear + tension + satisfaction, data = dat1)
print(m1)
```
# Second Stage
```{r}
dat2 <- read.dta("./data/olra_data/2nd.dta")
m2 <- orm(gold ~ benjoyment + binterest + bsurprise + bfear + btension + bsatisfaction + safety + comfort + enjoyment + interest + surprise + fear + tension + satisfaction, data = dat2)
print(m2)
```
# Third Stage
```{r}
dat3 <- read.dta("./data/olra_data/3rd.dta")
m3 <- orm(gold ~ benjoyment + binterest + bsurprise + bfear + btension + bsatisfaction + safety + comfort + enjoyment + interest + surprise + fear + tension + satisfaction, data = dat3)
print(m3)
```