forked from lebebr01/SPSStoR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
107 lines (83 loc) · 2.56 KB
/
README.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
## SPSS to R
[![Build Status](https://travis-ci.org/lebebr01/SPSStoR.svg?branch=master)](https://travis-ci.org/lebebr01/SPSStoR)
A set of functions that takes *SPSS* syntax as input and outputs *R* commands
to do the same analysis or data management tasks.
## Current Features
* Read in Data
* Get for sav files
* Data Manipulation
* Sort Cases
* Descriptives
* Aggregate
* Correlations
* Crosstab
* Descriptives
* Frequencies
* Graphics
* Models
* One sample t-test
* Independent sample t-test
* One-way ANOVA
## Upcoming Features
* More Get commands to read in csv, txt, etc.
* Dataset commands
* Value Labels
* Further arguments for descriptives
* Modeling functions
+ t-test (two sample with cut score and paired)
+ analysis of variance - more complicated designs
+ regression
+ generalized models
* if else statements
* Examine
## Installing Function
```{r install, eval = FALSE}
library(devtools)
install_github("SPSStoR", username = "lebebr01")
library(SPSStoR)
```
## Examples
### Multiple commands
```{r multiple}
# Multiple commands in one
spss_to_r(system.file("SPSSsyntax", "getDescExamp.txt", package = "SPSStoR"))
```
### Aggregate Example
```{r agg, warning = FALSE, message = FALSE}
spss_to_r(system.file("SPSSsyntax", "aggregateExamp.txt", package = "SPSStoR"))
```
### Correlation Example
```{r corr, warning = FALSE, message = FALSE}
spss_to_r(system.file("SPSSsyntax", "correlationsExamp.txt", package = "SPSStoR"))
```
### Crosstab Example
```{r crosstab, warning = FALSE, message = FALSE}
spss_to_r(system.file("SPSSsyntax", "crosstabExamp.txt", package = "SPSStoR"))
```
### Sort Cases Example
```{r sortcase, warning = FALSE, message = FALSE}
spss_to_r(system.file("SPSSsyntax", "sortCasesExamp.txt", package = "SPSStoR"))
```
### Descriptives Example
```{r desc, warning = FALSE, message = FALSE}
spss_to_r(system.file("SPSSsyntax", "descriptivesExamp.txt", package = "SPSStoR"))
```
### t-test Examples
```{r ttest}
# t-test one-sample
spss_to_r(system.file("SPSSsyntax", "ttestOneSampExamp.txt", package = "SPSStoR"))
# Independent t-test example
spss_to_r(system.file("SPSSsyntax", "ttestTwoSampValExamp.txt", package = "SPSStoR"))
```
### Get Command Example
```{r get}
spss_to_r(system.file("SPSSsyntax", "getExamp.txt", package = "SPSStoR"))
```
### Graphics
```{r graphics}
spss_to_r(system.file("SPSSsyntax", "graphExamps.txt", package = "SPSStoR"))
```
### Frequencies
```{r frequencies}
spss_to_r(system.file("SPSSsyntax", "frequenciesExamp.txt", package = "SPSStoR"))
```