plot_transition: Plot distributions of performance and transition propensities

plot_transitionR Documentation

Plot distributions of performance and transition propensities

Description

Plots distribution of academic performance and probabilities of transition for each class.

Usage

plot_transition(dataset)

Arguments

dataset

A data frame with 4 columns only, in the following order: 1: student's ID, 2: class, 3: transition (0 if not, 1 if yes) and 4: performance score.

Value

A plot of the distributions of performance and transition propensities for each class.

Author(s)

Christiana Kartsonaki

References

Erikson, R., Goldthorpe, J. H., Jackson, M., Yaish, M. and Cox, D. R. (2005) On Class Differentials in Educational Attainment. Proceedings of the National Academy of Sciences, 102: 9730–9733

Kartsonaki, C., Jackson, M. and Cox, D. R. (2013). Primary and secondary effects: Some methodological issues, in Jackson, M. (ed.) Determined to succeed?, Stanford: Stanford University Press.

Jackson, M., Erikson, R., Goldthorpe, J. H. and Yaish, M. (2007) Primary and secondary effects in class differentials in educational attainment: The transition to A-level courses in England and Wales. Acta Sociologica, 50 (3): 211–229

Examples

# generate a dataset
set.seed(1)
data <- data.frame(seq(1:10), rep(c(1, 2), length.out = 10), 
c(rep(0, times = 3), rep(1, times = 7)), 
c(rnorm(4, 0, 1), rnorm(4, 0.5, 1), NA, NA))

# run function
plot_transition(data)

DECIDE documentation built on June 7, 2022, 1:08 a.m.