Description Usage Arguments Details References See Also Examples
Function for plotting differences in posterior density estimates for separate parameters from sparse regression analysis.
1 2 | difference(x,type="mode",var1=NULL,var2=NULL,plot.it=TRUE,
main="Difference",xlabel="Effect", ylabel="Density")
|
x |
Object of class sparsereg. |
type |
Whether to difference the posterior mode or posterior mean. Options are "mode" and "mean". |
var1, var2 |
Variables names for the effects to difference. |
plot.it |
Whether to plot the density of the difference. |
main, xlabel, ylabel |
Main title, x-axis label, and y-axis label. |
Generates a density of the estimated posterior of the difference between the effects of two variables.
Ratkovic, Marc and Tingley, Dustin. 2015. "Sparse Estimation with Uncertainty: Subgroup Analysis in Large Dimensional Design." Working paper.
sparsereg, plot.sparsereg, summary.sparsereg, violinplot, print.sparsereg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.