[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Anna D. Johnson" <adj2106@columbia.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Looping in each of 5 imputed datasets |

Date |
Sat, 06 Feb 2010 11:25:19 -0500 |

gen weight1=.; gen pscore1=.; forvalues x=1/5{; set seed 339487731; gen r = uniform(); sort _mj r; drop r; psmatch2 treatment covars covars outcome if _mj==`x', outcome(outcome) noreplacement desc common trim(10); pstest covars covars outcome, sum ; replace weight1=_weight if _mj==`x'; replace pscore1=_pscore if _mj==`x';

Many thanks. -Anna * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: Looping in each of 5 imputed datasets***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: re: How to correct standard errors of a 2sls performed by** - Next by Date:
**RE: st: re: How to correct standard errors of a 2sls performed by** - Previous by thread:
**st: instrumenting two endogenous variables and their interaction term** - Next by thread:
**st: RE: Looping in each of 5 imputed datasets** - Index(es):

© Copyright 1996–2020 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |