In order to collect data to test a theory, you must be able to answer two questions: 1) What to measure? and 2) How to measure it? In other words, to clarify the purpose and method of data collection, you must understand variables and measurements. In research, variables refer to elements that researchers observe or measure, and variables allow researchers to explain or predict specific phenomena. When designing a study, clearly defining various types of variables and controlling and analyzing them appropriately can lead to more reliable and valid research results.
Original Korean article: Variables and Measurement R Statistics: Understanding independent variables, dependent variables and measurement levels
Variables and measurements are the starting point of R statistical analysis. Failure to distinguish between independent and dependent variables or misunderstanding the level of measurement can affect both the choice of analysis method and the interpretation of results. This article easily summarizes the role of variables and nominal, ordinal, interval, and ratio scales, and explains why they are important in R statistics.
Ⅰ. Types of Variables [Variables and Measurements]
Ⅰ-1. Independent Variable
Independent variable: A variable manipulated by the researcher that serves to provide a cause. An independent variable is a variable that a researcher manipulates or changes to observe its effects. It is considered a cause in an experiment and acts as a factor that affects the dependent variable.
- Example: Let's say your experiment examines the effect of light on plant growth. In this case, the amount of light (e.g. 4, 8, or 12 hours per day) is the independent variable. Researchers adjust the amount of light to see how it affects plant growth.
Ⅰ-2. Dependent Variable
Dependent variable: An outcome variable that changes depending on changes in the independent variable. The dependent variable is the outcome or response variable that the researcher wishes to measure. In other words, it is a variable that changes depending on changes in the independent variable, and the impact of the independent variable can be evaluated by looking at how the dependent variable changes.
- Example: In the plant growth experiment mentioned earlier, the degree of plant growth (e.g. height, number of leaves) is the dependent variable. Here, we measure how the degree of plant growth (dependent variable) changes as the amount of light (independent variable) changes.
Ⅰ-3. Parameter (Mediator Variable)
Mediating variable: A variable that mediates or explains the relationship between an independent variable and a dependent variable. Mediating variables help us understand how an independent variable conveys its influence on a dependent variable. It plays an important role when researchers explore the mechanism between independent and dependent variables.
- Example: In a plant growth experiment, the amount of light (independent variable) can affect the degree of plant growth (dependent variable) through the plant's photosynthetic rate (parameter). Here, the rate of photosynthesis changes as the amount of light increases, which in turn affects the degree of plant growth.
Ⅰ-4. Control Variable
Control variable: A variable that is kept constant in a study so as not to affect the results of the experiment. By holding the control variables constant, we can measure the net effect of the independent variable on the dependent variable. Control variables are important to increase the reliability of research results.
- Example: In a plant growth experiment, temperature, amount of water, soil type, etc. are control variables. By keeping these variables constant, we can clearly see how the amount of light affects plant growth.
Ⅰ-5. Predictor Variable
Predictor variable: A variable that is expected to affect changes in the dependent variable. Predictor variables are variables that researchers manipulate or observe and are used when making predictions about the dependent variable. This plays an important role in explaining or predicting changes in dependent variables.
- Example: In a weight loss study, predictors could include exercise amount, diet, and sleep time. Here we will analyze how these predictors affect weight loss (dependent variable).
Ⅰ-6. Outcome Variable
Outcome variable: This is the main variable that the researcher wants to measure as a result of changes in the predictor variable. Outcome variables describe responses or changes that occur under specific situations or conditions, and through them, the impact of predictor variables can be evaluated.
- Example: In a study of academic achievement, a student's test score is the outcome variable. In this case, we evaluate how study time or study method (predictor variable) affects test scores (outcome variable).
Ⅱ. Level of measurement [variables and measurements]
The measurement level refers to the relationship between the measurement object and the value it represents. Variables can be divided into categorical variables and continuous variables.
Ⅱ-1. Categorical Variable
Categorical variables are when data is divided into several fixed categories or groups. Each value represents a specific category, and there is no concept of order or size among these values.
- example:
- Gender: Male, Female
- Blood type: Type A, B, AB, O
- Housing type: Apartment, single-family home, villa Categorical variables can be further divided into nominal and ordinal.
- Nominal variables: unordered categories (e.g. blood type)
- Dichotomous variable: unordered variable (e.g. yes/no, living/non-living)
- Ordinal variables: ordered categories (e.g. level of education – elementary school, middle school, high school)
Ⅱ-2. Continuous Variable
A continuous variable is a variable that can have any real number within a specific range. These values are measurable and the concepts of order and size exist among numbers. When dealing with continuous variables, various statistical techniques can be used, and data are analyzed using measures such as mean, standard deviation, and variance.
- example:
- Height (cm): 170.5 cm
- Weight (kg): 65.3 kg
- Temperature (°C): 22.4°C
Categorical variables can be divided into interval, ratio, and discrete types.
- Interval variable: A variable that has continuous values with constant differences between values but no absolute zero (e.g. temperature (Celsius or Fahrenheit), IQ score, date)
- Ratio variable: A variable that has continuous values, the difference between the values is constant, and has an absolute zero point (e.g. weight, height, age, income)
- Discrete variable: A variable expressed as a non-continuous integer (e.g. number of students, number of cars, number of people in the household)

Good article to read together
- 1. What is research? [R Statistics]
- 3. Measurement error [R statistics]
- 4. Validity, reliability [R statistics]
- 5. Research method [R statistics]
- Importance and usage of pipe operator %>%
Key Checklist
- Have you distinguished between independent and dependent variables?
- Are control variables or parameters needed?
- Have you checked the measurement level of each variable?
- Have you chosen an analysis method appropriate for the level of measurement?
Good R statistics articles to read together
- What is research: Summary of research concepts for introduction to R statistics
- Research Method Introduction to R Statistics: Understanding research design and analysis methods at a glance
- Measurement Error R Statistics: Easily Understand Random Error and Systematic Error
- Validity/Reliability R Statistics: Criteria for judging a good measurement tool
FAQ
How do you distinguish between independent and dependent variables?
The independent variable is the causal or explanatory variable that is believed to affect the outcome, and the dependent variable is the outcome variable that is affected. The distinction becomes easier if you first identify what is cause and what is effect in your research question.
How does the level of measurement affect the choice of analysis method?
Depending on the nominal, ordinal, interval, or ratio scale, the analysis methods that can be used, such as mean, correlation, and regression, vary. Misjudging the level of measurement can lead to inaccurate interpretation of statistical results.
What are the differences between nominal, ordinal, interval, and ratio scales?
Nominal scales are categorical, ordinal scales are ordinal, interval scales are intervals, and ratio scales are numbers with absolute zero. Considering the nature of variables in terms of these four criteria makes analysis selection easier.
Related Reading
- Related Thinknote article
- Related Thinknote article
- Related Thinknote article
- Related Thinknote article
- Related Thinknote article
FAQ
What is this article about?
This article is an English translation and global-reader adaptation of the Korean post “Variables and Measurement R Statistics: Understanding independent variables, dependent variables and measurement levels.” It preserves the original article’s main explanation, examples, and practical context.
Why is it translated into English?
The English version helps global readers access Thinknote articles through English search keywords while keeping the Korean source available as the original reference.
Where can I read the original Korean version?
You can read the original Korean article here: https://www.thinknote.co.kr/variables-measurement-r-statistics/