quiz1

Table of contents

  1. Basic of R studio
  2. Null hypothesis significance testing
  3. Validity
  4. Reliability
  5. Number of factors: eigenvalues
  6. Confirmatory factor analysis (CFA)

1. Basic of R studio

1.1 Data structures in R

R offers several fundamental data structures for organizing information. These structures differ in how they store data, particularly regarding the types of elements they can contain and how they are accessed 1.

  • Vectors: These are one-dimensional arrays that store elements of the same data type.
  • Lists: These are one-dimensional structures that can store elements of different data types.
  • Accessing elements in a list is done using double square brackets ([[ ]]) or, for named lists, using the dollar sign ($).
  • Dataframes: These are two-dimensional structures, similar to spreadsheets, where columns can contain elements of different data types, but each column must contain elements of the same type.
  • Dataframes are indexed using square brackets, often with a combination of row and column indices or names 1.

1.2 Descriptive and inferential statistics

Statistical analysis in R can be broadly categorized into descriptive and inferential statistics. Descriptive statistics summarize the main features of a dataset, while inferential statistics use sample data to make generalizations about a population 1.

1.3 Central tendency and variance

Measures of central tendency describe the center of a dataset, while variance quantifies the spread of data points 1.

MeasureDefinitionGoodBad
MeanAverage of all data pointsCan represent all data pointsExtreme values can shift the mean
MedianMiddle value of a datasetRobust, insensitive to extreme valuesNot all kinds of changes in a single data point are reflected
ModeMost frequent valueRepresents the largest number of casesMany kinds of changes are not reflected
  • Deviation from mean: This quantifies how much individual data points differ from the mean.
  • Variance: This measures how different a case is from the mean.
  • Symmetry: This describes the distribution of data, indicating if it is positively or negatively skewed.
  • Extremeness (Kurtosis): This measures how much more or less extreme values a distribution has compared to a normal distribution.
  • A kurtosis of approximately 0 indicates a distribution close to normal.
  • A positive kurtosis suggests more extreme values than a normal distribution.
  • A negative kurtosis indicates fewer extreme values than a normal distribution 1.

1.4 Sample distribution and estimation

Inferential statistics often involve drawing conclusions about a population based on a sample 1.

  • Sample: A subset of units drawn from a larger population.
  • Sample mean: This serves as an estimate of the population mean.
  • Sample size and distribution: As the sample size increases, the spread of the distribution of sample means decreases (smaller standard deviation), leading to a narrower distribution. A larger sample size generally results in a distribution of sample means that is closer to the population mean.
  • Central Limit Theorem: This theorem states that as sample sizes increase, the sampling distribution of sample means approaches a normal distribution. This allows for the approximation of the sample distribution of the mean.
  • Point estimators: These are statistics, such as the sample mean and variance, that provide a single value as an estimate of a population parameter.
  • Unbiased estimators: An estimator is unbiased if its expectation equals the population parameter. Biased estimators do not meet this criterion.
  • The smaller the standard error of a point estimator, the better it is considered.
  • Sample Confidence Intervals (CI): Typically calculated at a 95% level, CIs provide a range of plausible values for a population parameter.
  • t-distribution: This is used when analyzing a single sample and the population standard deviation is unknown, necessitating the use of the standard error 1.

📝 When analyzing a dataset of student test scores, the mean score might be 75. However, if a few students scored exceptionally low (e.g., 20), the median score might be a more robust indicator of typical performance, perhaps around 78, as it is less affected by these outliers 1.

2. Null hypothesis significance testing

2.1 Null hypothesis significance testing procedures

Null hypothesis significance testing (NHST) is a statistical procedure used to determine whether a sample provides enough evidence to reject a null hypothesis. The process involves several key steps to evaluate the compatibility of the data with a specified statistical model 2.

  • Hypothesis specification: The first step is to clearly define the null hypothesis (H0H_0) and the alternative hypothesis (H1H_1).
  • Sampling distribution: Determine the sampling distribution of the chosen test statistic under the assumption that the null hypothesis is true.
  • Significance level and critical value: Decide on a significance level (e.g., 0.05, 0.01, 0.001) and identify the corresponding critical value(s) that define the rejection region(s). For a two-tailed test with n−2n-2 degrees of freedom, critical values can be found using functions like qt(.025, df = n - 2) for the lower bound and qt(.075, df = n - 2) for the upper bound.
  • Compute test statistic: Calculate the test statistic from the sample data.
  • Decision: Compare the computed sample test statistic with the critical value(s). If the sample test statistic falls within the rejection region (e.g., exceeds the critical value for a one-tailed test, or falls outside the bounds for a two-tailed test), the null hypothesis is rejected, indicating statistical significance. Otherwise, the null hypothesis is accepted 2.

NHST aims to control the Type I error, which is the error of rejecting the null hypothesis when it is actually true. The significance level directly influences the probability of committing a Type I error 2.

2.2 Type I and Type II errors 2

NHST involves two types of errors:

  • Type I error: Rejecting the null hypothesis (H0H_0) when it is true. The significance level (α\alpha) is set to control the probability of this error.
  • Type II error: Failing to reject the null hypothesis (H0H_0) when the alternative hypothesis (H1H_1) is true 2.
DecisionNull Hypothesis TrueAlternative Hypothesis True
Reject H0Type I ErrorCorrect Decision
Do not reject H0Correct DecisionType II Error

📝 For a two-tailed test with n−2n-2 degrees of freedom, critical values can be found using qt(.025, df = n - 2) for the lower bound and qt(.075, df = n - 2) for the upper bound. If the sample t were greater than the lower end value and less than the upper end, we would accept H0 2.

2.3 Problems with NHST and p-values

While NHST is a widely used procedure, it is important to understand its limitations, particularly concerning p-values 2.

  • P-value interpretation: A p-value indicates the incompatibility of the observed data with a specified statistical model. However, it does not measure the probability that the studied hypothesis is true, nor does it quantify the probability that the data were produced by random chance alone.
  • Effect size and importance: A p-value does not measure the size of an effect or the importance of a result. A statistically significant result (low p-value) does not necessarily imply a practically meaningful or large effect.
  • Evidence measure: A p-value does not provide a good measure of evidence regarding a statistical model or hypothesis 2.

2.4 Classical measurement model (factor analysis)

The classical measurement model, often employed in factor analysis, posits that observed variables (items) are indicators caused by an underlying latent factor or construct 2.

  • Latent factor: This is the unobserved construct being measured (e.g., intelligence, depression).
  • Observed items: These are the specific questions or statements that make up the scale.
  • Model equation: Each item's score (XiX_i) can be represented as Xi=β0i+β1iFactor+eiX_i = \beta_{0i} + \beta_{1i}\text{Factor} + e_i, where β0i\beta_{0i} is the intercept, β1i\beta_{1i} is the factor loading (indicating the strength of the relationship between the item and the factor), and eie_i is the error term.
  • Error term: This component captures all other causes of an item's score not accounted for by the latent factor 2.

📝 The model equation for an item's score (XiX_i) is Xi=β0i+β1iFactor+eiX_i = \beta_{0i} + \beta_{1i}\text{Factor} + e_i, where β1i\beta_{1i} is the factor loading indicating the strength of the relationship between the item and the latent factor 2.

2.5 Assumptions of the classical measurement model

Different assumptions about the factor loadings, intercepts, and error variances lead to various model specifications 2:

  • Parallel test model: Assumes all items have equal factor loadings, intercepts, and error variances. This is a very restrictive assumption.
  • Essentially tau-equivalent model: Assumes all items have equal factor loadings but allows for different intercepts and error variances.
  • Congeneric model: This is the most frequently used and least restrictive model, allowing all items to have different factor loadings, intercepts, and error variances 2.

2.6 Effect model of measurement

In the effect model of measurement, the latent construct (ξ\xi) is considered a common cause that influences the observed scores (XX) of the items 2.

  • Latent construct: This is the underlying variable (e.g., intelligence, depression, physical pain) that is being measured.
  • Observed scores: These are the responses to the individual items on the scale.
  • Common causes: The items are viewed as manifestations or effects that stem from the latent construct 2.

2.7 Steps for developing a scale

The process of developing a scale typically involves several stages, beginning with the conceptualization of the construct to be measured 2.

  1. Define the construct: Clearly articulate the specific concept or trait that the scale aims to measure.
  2. Generate items: Create a pool of potential items that are relevant to the construct.
  3. Expert review: Have experts in the field evaluate the items for clarity, relevance, and content validity.
  4. Pilot testing: Administer the preliminary scale to a sample group to identify any issues with item wording or understanding.
  5. Data analysis: Analyze the data using methods like factor analysis to assess the scale's dimensionality and reliability.
  6. Item refinement: Revise or remove items based on the analysis to improve the scale's psychometric properties.
  7. Validation: Conduct further studies to establish the scale's validity (e.g., construct validity, criterion validity) and reliability 2.

3. Validity

3.1 Validity: An Overview

Validity refers to the degree to which evidence and theory support the interpretations of test scores for proposed uses of tests. It is a fundamental concept in psychometrics, ensuring that a measurement tool accurately assesses what it purports to measure.

The process of developing a measurement scale involves several stages, from defining the construct to evaluating the items and seeking feedback from experts and respondents 3.

3.2 Developing Measurement Scales

The development of measurement scales is a systematic process that begins with a clear definition of the construct to be measured and the intended use of the scale. This includes considering the specificity of the scale's application, the target population, and how the scores will be utilized, such as for prediction, identification of individuals, or screening 3.

3.3 Generating Candidate Items

The initial phase of scale development involves generating a pool of candidate items. These items should be designed to elicit responses that are direct effects of the construct being measured.

For instance, if measuring behavior, the act of performing or not performing that behavior should be influenced by the construct. Common strategies include adapting items from existing scales and consulting with informants or experts.

The initial item pool should be larger than the target number of items for the final scale, as this allows for more rigorous item selection and requires a larger sample size for pilot testing 3.

3.4 Evaluating Candidate Items

Once a pool of candidate items is generated, they undergo evaluation to identify good and bad items. Key criteria for item evaluation include avoiding double-barreled items (which ask about two distinct topics with a single response option), ensuring items are not excessively long, maintaining readability, and preventing the use of double negatives.

Items that are too similar to each other should also be avoided. The inclusion of reverse-scored items is a common practice to detect response sets, where participants consistently agree or disagree regardless of item content 3.

3.5 Response Formats

The choice of response format is crucial for effective measurement. Various formats exist, including:

  • Thurstone scales and Guttman scales represent specific scaling methodologies.
  • The number of response options should be considered in relation to the participants; generally, more options are better up to a certain point, and the inclusion of a neutral option should be evaluated.
  • Likert scales and Likert-type scales offer different degrees of agreement or levels of frequency.
  • Semantic differential scales present a stimulus and a pair of opposite words (e.g., good/bad) for respondents to rate.
  • Visual analog scales use two anchors and allow participants to select a position along a line, offering high precision but potentially leading to difficulties in discriminating between positions 3.

The time frame for questions and the administration method (e.g., online survey, laptop) are also important considerations 3.

3.6 Expert Review

Scholarly experts in the field being studied, or individuals highly familiar with the content, play a vital role in evaluating the initial item pool. Their feedback is sought to determine if the items are relevant to the construct, appropriate for the target population, and clear in their meaning to that population.

Experts also help identify any important aspects of the construct that may not have been covered by the initial set of items 3.

3.7 Respondent Feedback

Gathering feedback from the target respondents is essential for refining the scale. Cognitive interviewing is a technique where respondents are asked to articulate how they interpret an item and the process they use to decide on a response.

This method, typically conducted on a subset of items for each respondent, is highly effective in identifying potential problems with item clarity or interpretation that may not be apparent to scale developers 3.

📝 When developing a scale to measure job satisfaction, an expert might review items to ensure they cover key aspects like satisfaction with pay, colleagues, and work tasks. Cognitive interviewing might reveal that respondents interpret an item about "work-life balance" differently than intended, prompting a revision for clarity 3.

3.8 Types of Validity Evidence

Validity is supported by various types of evidence, each addressing a different facet of how well the test scores represent the intended construct.

Type of ValidityDescription
Content validityThe extent to which test items adequately represent the construct being measured.
Criterion validityThe extent to which test scores are related to other measures of the same or a related construct.
Convergent validityThe degree to which test scores are positively correlated with scores on other measures that theoretically assess the same construct.
Discriminant validityThe degree to which test scores are not correlated with scores on measures that theoretically assess different constructs 3.

3.9 Criterion Validity Subtypes

Criterion validity specifically examines the relationship between test scores and an external criterion. This can be further divided into concurrent and predictive validity based on the timing of the criterion measurement.

SubtypeDescription
Concurrent validityA subtype of criterion validity where the criterion is measured at the same time as the test score.
Predictive validityA subtype of criterion validity where the criterion is measured at a later period, assessing the test's ability to predict future outcomes 3.

4. Reliability

4.1 Definition of reliability

Reliability refers to the consistency of scores obtained across replications, such as different time points, forms, raters, or other forms of replication. It quantizes how consistently a test measures what it purports to measure, independent of the specific administration 4.

4.2 Internal consistency (Cronbach's alpha)

Internal consistency assesses how well individual items or questions within a test, scale, or survey correlate with each other and measure the same underlying concept or construct. Cronbach's alpha is a measure derived from the average of split-half reliability coefficients across all possible splits of the test items.

It is interpreted as the proportion of variance in the total score attributable to a common cause. A value of α≥.70\alpha \ge.70 is generally considered acceptable.

When a set of items is suspected to comprise two or more factors, omega (ω\omega) is the preferred measure 4.

📝 A survey measuring job satisfaction has a Cronbach's alpha of α=.85\alpha = .85, indicating that 85% of the variance in total scores is attributable to the common cause of job satisfaction.

4.3 Test-retest reliability

Test-retest reliability is determined by administering the same test to the same group of participants at two different time points and calculating the correlation between the scores. While easy to compute and assess a form of consistency, interpretation can be complicated by several factors:

  • Real changes in participants: Participants may undergo genuine changes in the construct being measured between test administrations.
  • Environmental changes: The testing environment or situation may differ between administrations, introducing variability.
  • Response bias: Participants might base their responses on their memory of previous answers, leading to artificially high correlations.
  • Genuine test score error variance: Unreliability inherent in the measurement instrument itself contributes to score fluctuations 4.

📝 A researcher administers a math test to a group of students, then administers the same test again two weeks later. The correlation between the two sets of scores is calculated to assess test-retest reliability.

4.4 Other forms of reliability 4

Other forms of reliability assessment include:

FormDescription
Alternate-form reliabilityInvolves two alternate forms of a test, each with different items, administered to participants.
Inter-rater reliabilityAssesses the agreement between different raters who score the same test or performance.

4.5 Improving low reliability

Low reliability can be improved through several strategies:

  • More reliable items: Selecting or developing items that are more precise and less prone to random error.
  • Clarity in instructions and content: Enhancing the clarity of item content, response options, and instructions can reduce ambiguity and measurement error.
  • Rater training: For inter-rater reliability, ensuring raters receive sufficient and standardized training is crucial.
  • Reducing situational noise: Minimizing extraneous situational factors that could influence scores can enhance consistency 4.

4.6 Consequences of low reliability

A significant consequence of low reliability is a higher probability of committing a Type II error, failing to detect a true effect or relationship 4.

4.7 Exploratory factor analysis

Exploratory factor analysis (EFA) is a statistical technique used to identify underlying latent variables (factors) that explain the correlations among a set of observed variables. It is often employed in the development of scales and questionnaires to understand the dimensionality of the construct being measured 4.

4.8 Reliability as a ratio of variances

Reliability can be conceptualized as the ratio of the variance of the true score to the variance of the scale score: Reliability=Variance(true score)Variance(scale score)\text{Reliability} = \frac{\text{Variance}(\text{true score})}{\text{Variance}(\text{scale score})} 4.

5. Number of factors: eigenvalues

5.1 Eigenvalues

Eigenvalues represent the variances of kk uncorrelated factors that can be used to summarize the original variables. This is achieved by identifying the factor with the largest variance, then the second factor uncorrelated with the first but with the largest remaining variance, and repeating this process until all kk uncorrelated variables are found.

In Principal Component Analysis (PCA), the sum of individual variances equals the sum of the kk eigenvalues. If the original variables are strongly related, a few eigenvalues will be large, with others being small.

If the variables are uncorrelated, all eigenvalues will be roughly equal in the population 5.

5.2 Selection methods to determine the number of factors 5

Several methods exist to determine the optimal number of factors for a solution, balancing interpretability with variance explained.

MethodDescription
K1 ruleSelects the number of factors whose eigenvalues are greater than 1.
Parallel analysis (recommended)Generates samples of uncorrelated variables with the same sample size and number of variables. Computes eigenvalues for these samples, then finds the mean or 95th percentile of these eigenvalues. The number of factors is determined by comparing the sample eigenvalues to this cutoff value.

5.3 Components of Exploratory Factor Analysis (EFA)

Exploratory Factor Analysis (EFA) aims to uncover the underlying structure of a dataset by identifying latent factors that explain the relationships among observed variables. Key components include factor loadings, which quantify the strength of the relationship between items and factors, and measures of variance explained, such as the cumulative proportion of variance explained by all factors and the proportion of explained variance for each individual factor 5.

5.4 Rotation methods 5

Rotation methods are employed in EFA to achieve a "simple structure," where items ideally have high loadings on only one factor and near-zero loadings on others, thereby enhancing interpretability.

Rotation TypeDescriptionKey Characteristics
Orthogonal rotation (e.g., Varimax)Maintains the uncorrelated nature of factors, ensuring factors remain independent.Items have large loadings on only one factor. Communalities remain the same after rotation. Redistributes total variance.
Oblique rotation (e.g., Promax)Allows factors to be correlated, permitting axes to form angles other than 90 degrees.Items have large loadings on only one factor. Communalities remain the same, but are not necessarily the sum of squared loadings due to potential factor correlation. Redistributes variance (interpretation should be cautious).

📝 Consider a survey measuring job satisfaction. After EFA, an orthogonal rotation might yield two distinct factors: "Work Environment" and "Compensation," with items loading clearly on one or the other. An oblique rotation, however, might reveal that these two factors are moderately correlated, suggesting that employees who are satisfied with their work environment also tend to be more satisfied with their compensation 5.

6. Confirmatory factor analysis (CFA)

Confirmatory Factor Analysis (CFA) is a statistical technique used to test a hypothesized structure of latent factors influencing observed indicators. Unlike exploratory factor analysis, CFA begins with a pre-specified model based on theory or prior research, positing specific relationships between latent variables and their measured manifestations.

The primary goal is to determine if the proposed factor structure adequately explains the observed data, particularly the covariance matrix of the indicators 6.

6.1 Components of a CFA model 6

A CFA model comprises several key components that define the relationships between unobserved latent factors and observed variables:

  • Latent factors: These are unobserved, theoretical constructs that are hypothesized to influence the observed variables.
  • Indicators: These are the observed variables (e.g., survey items, test scores) that are assumed to be caused by the latent factors.
  • Factor loadings: These represent the strength and direction of the relationship (path) between a latent factor and an indicator. They quantify how much an indicator is influenced by a particular factor.
  • Factor covariances: These describe the relationships (covariances or correlations) between different latent factors within the model.
  • Error terms: These represent the variance in an indicator that is not explained by the latent factors, capturing unique variance or measurement error specific to that indicator.
Model ComponentDescription
Latent factorsUnobserved variables hypothesised to influence observed variables.
IndicatorsObserved variables assumed to be caused by latent factors.
Factor loadingsStrength and sign of paths from latent factors to indicators.
Factor covariancesRelationships between latent factors.
Error termsUnique variance in indicators not explained by factors.

6.2 Parameter estimation and model specification

In CFA, parameters are estimated to define the model's structure and assess its fit to the data. Parameters can be either freely estimated or fixed to specific values.

  • Free parameters: These are parameters (e.g., factor loadings, factor covariances) that are estimated from the data. The analysis seeks values for these parameters that best reproduce the observed covariance matrix. Paths that are drawn in the model but not assigned a specific value are considered free parameters, and the analysis tests if they are significantly different from zero.
  • Fixed parameters: These are parameters that are set to a specific value, often zero. In CFA, paths that are hypothesized to be zero (i.e., an indicator is not related to a particular factor) are fixed to 0 6.

The choice of estimator, such as the maximum likelihood estimator, is common and typically assumes that the observed variables follow a multivariate normal distribution in the population 6.

6.3 Model fit and parsimony 6

Model fit in CFA assesses how well the proposed model's implied covariance matrix matches the observed covariance matrix of the data. A key aspect of evaluating a CFA model is its parsimony, which relates to its simplicity and efficiency in explaining the data.

  • Model fit: The model is considered to have good fit if the covariances between variables and their variances can be adequately explained by the hypothesized structure and estimated parameters.
  • Parsimony: A more parsimonious model is preferred, meaning it explains the data well with fewer parameters. In structural equation modeling (SEM), parsimony is related to the degrees of freedom (df). A larger df generally indicates a more parsimonious model for a given covariance matrix, as it implies fewer free parameters relative to the number of unique elements in the covariance matrix 6.
ConceptDescription
Model fitAssesses how well the model's implied covariance matrix matches the observed covariance matrix.
ParsimonyRefers to the simplicity of the model; a model with fewer free parameters is more parsimonious.

📝 In a CFA model testing the structure of a personality questionnaire, a researcher might hypothesize that "extraversion" and "conscientiousness" are two latent factors. They would specify that certain items (indicators) load only onto the "extraversion" factor (fixed parameters set to 0 for other factors), while other items load only onto the "conscientiousness" factor. The factor loading for each item would be a free parameter, as would the covariance between "extraversion" and "conscientiousness." The model fit would then be evaluated to see if this hypothesized structure adequately explains the observed correlations among all the questionnaire items 6.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also