Chapter 1 Flashcards
(15 cards)
what is R used for
R is used for data manipulation, statistics, and
graphics.
getwd ()
get your user name # Set working directory
numbers vs. character strings
# numbers vs. character strings 7 # The number 7 "7" # The character for the numeral 7.
scales
Scales
Nominal categories
Ordinal categories, rank
Interval categories, rank, equal, interval
Ratio categories, rank, equal, interval, true zero point
Scales Examples
Nominal types of flowers, vote/abstain
Ordinal socioeconomic status (S.E.S.), class rank
Interval time (in the abstract with no ending or beginning)
Ratio age, weight, height, time to complete a task
scale examples
Scales Examples
Nominal types of flowers, vote/abstain
Ordinal socioeconomic status (S.E.S.), class rank
Interval time (in the abstract with no ending or beginning)
Ratio age, weight, height, time to complete a task
Categorical variables
A categorical variable
has values that function as labels rather than as
numbers.
Continuous variables
A continuous variable
has numeric values such as 1, 2, 3.14, -5, etc.
Types
Distinct categories that you use in classifying
variables. Example: “dogs” and “cats” for the
variable animal.
Tokens
The number of observed instances for each
type. Example: the individual dogs and cats that are
counted.
Population
An entire set of possible entities or
values.
Sample
A portion of a population chosen to
represent that population.
Distribution
A description of how data are
distributed across the possible values of a
variable.
Bar plot:
A picture of the distribution of a variable.
Reliability
Also known as replicability, that is
whether performing the same experiment multiple
times, or performing the same analysis on
multiple samples will yield the same results.
Validity
Your results are not valid unless you use the
appropriate analysis for the data you have and the
analysis answers the questions you have set out
to research.