Description Usage Arguments Examples
The plot created uses the ggplot2
framework. As such, additional modifications
can be made. This plot is an extension of the circ.psa
function in the
PSAgraphics
package for multilevel models.
1 2 |
x |
the results of |
ratio |
the ratio of the size of the distribution plots (left and bottom) to the circular plot. |
plotExtra |
a plot to place in the lower left corner. |
... |
parameters passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
require(multilevelPSA)
require(party)
data(pisana)
data(pisa.colnames)
data(pisa.psa.cols)
mlctree = mlpsa.ctree(pisana[,c('CNT','PUBPRIV',pisa.psa.cols)], formula=PUBPRIV ~ ., level2='CNT')
student.party = getStrata(mlctree, pisana, level2='CNT')
student.party$mathscore = apply(student.party[,paste0('PV', 1:5, 'MATH')], 1, sum) / 5
results.psa.math = mlpsa(response=student.party$mathscore,
treatment=student.party$PUBPRIV,
strata=student.party$strata,
level2=student.party$CNT, minN=5)
plot(results.psa.math)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.