Statalist The Stata Listserver


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

st: error: variable present in model more than once when using -svy: reg- with replicate weights


From   "Brent Fulton" <[email protected]>
To   <[email protected]>
Subject   st: error: variable present in model more than once when using -svy: reg- with replicate weights
Date   Fri, 19 Jan 2007 16:51:57 -0800

I am using Stata 9 -svy: reg- with JK2 replicate weights and get the
following error:

svyset [pw=wgt0], jkrweight(wgt1-wgt90, multiplier(1)) vce(jackknife) mse
svy: reg dep1 x1 x2 x3 x4 x1_x4
*where x1_x4 is x1 interacted with x4

error statement: x1_x4 present in model more than once 


I think the problem is with the replicate weights because the following
commands estimate the model (but obviously have incorrect SEs (and biased
parameter estimates in the first case)).
reg dep1 x1 x2 x3 x4 x1_x4

svyset [pw=wgt0]
svy: reg dep1 x1 x2 x3 x4 x1_x4

Any suggestions would be appreciated.

-Brent Fulton



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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