summary.subpop | R Documentation |
subpop
function.The subpop
function stores the most and least affected groups.
This command allows users to see these two groups and their corresponding
characteristics. The command also allows users to check the summary
statistics of variables in interest, which can be useful for plotting the
projections plot via the plot.subpop
method.
## S3 method for class 'subpop' summary(object, vars = NULL, ...)
object |
Output of |
vars |
The variables that users want to see the summary
statistics. The default is |
... |
additional arguments affecting the summary produced. |
data("mortgage") ### Regression Specification fm <- deny ~ black + p_irat + hse_inc + ccred + mcred + pubrec + ltv_med + ltv_high + denpmi + selfemp + single + hischl ### Issue the subpop command set_b <- subpop(fm, data = mortgage, method = "logit", var = "black", u = 0.1, alpha = 0.1, b = 50) ### Produce summary of two variables groups <- summary(set_b, vars = c("p_irat", "hse_inc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.