Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: qvf and xi expansion

From   "Henry Sauermann" <>
To   <>
Subject   st: qvf and xi expansion
Date   Wed, 9 May 2007 23:00:12 -0400

Dear stata listers,

I need to run an instrumental variables regression with count data in the
second stage. The best stata supported method seems to be -qvf-.
I have several categorical variables that I would need to expand using xi
(putting the dummies in directly makes the command huge and very complex).
My problem is that qvf does not seem to work with the expansion. While it
does expand variables in the first part of the statement, it does not expand
variables in the second.

E.g., in

xi: qvf y i.x1 x2 x3 x4 (i.x1 x2 x4 t3)

,the first time x1 is expanded, but the second time qvf reports missing
variables (presumably indicating that it did not expand x1 correctly the
second time).

Does anybody know what I am doing wrong / how to get xi and qvf to work

Thanks a lot,

Henry Sauermann
Ph.D. Strategy Program
Fuqua School of Business
Duke University, Box 90120
Durham, NC 27708

*   For searches and help try:

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