plot_transition | R Documentation |
Plots distribution of academic performance and probabilities of transition for each class.
plot_transition(dataset)
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. |
A plot of the distributions of performance and transition propensities for each class.
Christiana Kartsonaki
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
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.