Skip to main content Accessibility help
×
Hostname: page-component-cd9895bd7-hc48f Total loading time: 0 Render date: 2024-12-26T14:31:25.904Z Has data issue: false hasContentIssue false

6 - Transformations

from PART I - R AND BASIC STATISTICS

Published online by Cambridge University Press:  22 July 2017

David L. Carlson
Affiliation:
Texas A & M University
Get access

Summary

Raw data comes in many sizes and shapes and occasionally they are the wrong sizes and shapes for what we want to do with them. In those situations, it can be useful to transform them before analysis. Transforming data is often useful to balance a non-symmetric distribution or to pull in outlying observations to reduce their influence in the analysis. Transformations can be applied down columns (e.g., standard scores to weight each variable equally) or across rows (e.g., percentages to weight each assemblage equally). In general, there are four data problems that can sometimes be resolved with transformations.

First, transformations can help to produce a distribution that is closer to a normal distribution, making it possible to use parametric statistical methods (such as t-tests). In this case, we are looking at the raw data distribution and using an order-preserving transformation that makes the data more symmetrical. The alternative to transforming the data is to use nonparametric tests that do not require a normal distribution or robust statistical methods that are not as influenced by extremely large or small values.

Second, transformations can make it possible to use simple linear regression to fit nonlinear relationships between two variables. Transforming one or both variables makes the relationship between them linear. The drawback with this approach is that the errors are transformed as well so that additive errors become multiplicative errors when using a log transform. The alternative to transformation is to use nonlinear regression.

Third, transformations can be used to weight variables equally so that differences in measurement scales or variance do not give some variables more influence than others in the analysis. This is particularly important when we are using the concept of “distance” between observations (Chapter 14).

Fourth, transformations can be used to control for size differences between assemblages or specimens that we want to exclude from the analysis in order to focus on shape or relationships between variables that are independent of differences in size. In this case the transformation is applied to the rows of the data. First, we will consider a collection of R functions that are useful for a number of purposes, including transformation.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2017

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Transformations
  • David L. Carlson, Texas A & M University
  • Book: Quantitative Methods in Archaeology Using R
  • Online publication: 22 July 2017
  • Chapter DOI: https://doi.org/10.1017/9781139628730.006
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Transformations
  • David L. Carlson, Texas A & M University
  • Book: Quantitative Methods in Archaeology Using R
  • Online publication: 22 July 2017
  • Chapter DOI: https://doi.org/10.1017/9781139628730.006
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Transformations
  • David L. Carlson, Texas A & M University
  • Book: Quantitative Methods in Archaeology Using R
  • Online publication: 22 July 2017
  • Chapter DOI: https://doi.org/10.1017/9781139628730.006
Available formats
×