Description Usage Arguments Value Examples
compute (counterfactual) distributions using distribution regression
1 |
formula |
a formula: y ~ x1+x2 |
y0 |
a grid of threshold values |
ref |
reference group. ref=g1 or g2. |
data1 |
data for group 1 |
data2 |
data for group 2 |
link |
link function: logit or probit |
a series of (counterfactual) distributions
1 2 3 4 5 6 7 8 9 10 | data(five)
na=five[,1:6]
eu=five[,7:12]
colnames=c("Mkt.RF","SMB","HML","RMW", "CMA","SMALL.LoBM")
colnames(na)=colnames
colnames(eu)=colnames
formula=SMALL.LoBM~Mkt.RF+SMB+HML+RMW+CMA
y=na$SMALL.LoBM
y0=seq(quantile(y,probs = 0.05),quantile(y,probs = 0.95),length=100)
cfs=cfs_dr(formula,y0,ref="g1",data1=na,data2=eu,link="logit")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.