Chapter 9. Statistical Testing with R
1. R Commands for this chapter
All commands are found in this docx file
2. Converting a categorical variable into and ordinal variable
These are the files to retrace the steps for the variable conversion in Section 9.3.3
- The downloaded file: wedgievan.txt
- The Excel-imported file: wedgievan.xlsx
- The re-categorized variable file: wedgievan_recoded.xlsx
3. HCFA source code
- Source file for HCFA © Stephan Th. Gries, provided with kind permission: 05-1_hcfa_3-2.r
- The original download file from the DT website, for the "Golden Horseshoe All": differentvan_orginal.xlsx
- The reformatted file: differentvan.xlsx
- The reformatted file saved as a text file for R: differentvan.txt
4. Logistic regression
Here are the data files for yod-dropping or yod-retention in the lexical item news in Montreal:
- The original downloaded file with problems with the category names: Montreal news.txt
- The file with corrected category names but still with one type of error in the form of some (four) empty dependent variable fields: Montreal news2.txt
- The corrected file, with no errors, for input into R. This file is the file for all regression runs in Chapter 9: Montreal.news3.txt