Dear StataListers,
I can't get why the analyzes below, performed in Stata / R, do not produce the same result.
Please provide your suggestions for the explanation for these differences.
Thanks,
Martine
PS (how) can I display the actual cutpoints in Stata (imb)?
-- STATA
. import delimited "G:\Recidive\Projecten\Verkeer\Algemeen\Artike l effectiviteit ASP tijdens\Data\Data voor R.csv", clear
(8 vars, 8,627 obs)
. imb d_sekse lftbegrec d_addinfo_ind_best lftinsz1 vgalgexuz vgverkexuz vgrijoiuz, treatment (treat)
(using the scott break method for L1 distance)
Multivariate L1 distance: .68243298
Univariate imbalance:
L1 mean min 25% 50% 75% max
d_sekse .01557 -.01557 0 0 0 0 0
lftbegrec .0687 -1.5626 0 -1 -2 -1 -5
d_addinfo_ind_best .00497 -.00497 0 0 0 0 0
lftinsz1 .08852 .91045 0 1 1 2 -12
vgalgexuz .14912 -1.2611 0 0 -1 -1 78
vgverkexuz .09852 -.41727 0 0 0 -1 4
vgrijoiuz .11859 -.36406 0 0 0 0 -4
--R
> data <- read.csv(file = "G:\\Recidive\\Projecten\\Verkeer\\Algemeen\\Artik el effectiviteit ASP tijdens\\Data\\Data voor R.csv")
> cov <- c("D_SEKSE", "LFTBEGREC", "D_ADDINFO_IND_BEST","LFTINSZ1", "VGALGEXUZ", "VGVERKEXUZ", "VGRIJOIUZ")
> imb <- imbalance(group = data$TREAT, data = data[cov])
> imb
Multivariate Imbalance Measure: L1=0.665
Percentage of local common support: LCS=11.2%
Univariate Imbalance Measures:
statistic type L1 min 25% 50% 75% max
D_SEKSE -0.015571508 (diff) 0.015571508 0 0 0 0 0
LFTBEGREC -1.562561051 (diff) 0.025019213 0 -1 -2 -1 -5
D_ADDINFO_IND_BEST -0.004970458 (diff) 0.004970458 0 0 0 0 0
LFTINSZ1 0.910454843 (diff) 0.045867098 0 1 1 2 -12
VGALGEXUZ -1.261056065 (diff) 0.146272471 0 0 -1 -1 78
VGVERKEXUZ -0.417271627 (diff) 0.097957912 0 0 0 -1 4
VGRIJOIUZ -0.364063976 (diff) 0.118028583 0 0 0 0 -4
Related Posts with CEM: Stata vs R
Pearson Residuals (fe regression)Hi - I have a simple model where I am trying to understand the impact of a firm's geographical dive…
New package on SSC archive: icalc - a toolkit for interperting and reporint interaction effects in generlaized linear modelsWith gratitude to Kit Baum for keeping up the SSC archive, I am pleased to announce the release of t…
Interpreting sureg resultDear all, can you show me how to interpret this sureg result? Esp for d##c thank you in advance sur…
generate cumulative IRF after -xtvar-Hi Statalists, I'm estimating panel VAR with -xtvar- (a user-contributed code by Cagala(2014)?). I'…
Is meglm support for poisson mean difference?In the Multilevel model, meglm is responsible for many linkage functions and families, but not for t…
Subscribe to:
Post Comments (Atom)
0 Response to CEM: Stata vs R
Post a Comment