Statalist The Stata Listserver


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

st: Program and syntax error "weights not allowed"


From   <[email protected]>
To   <[email protected]>
Subject   st: Program and syntax error "weights not allowed"
Date   Thu, 31 Aug 2006 08:48:50 +0200

Dera Stata list,

I've a problem with this program.
It seems not possible to replace a value in tata vector.
Could someone explain me ?
How can I do ?

gen tata=0
forvalues i=1/34290 {
local J=nb_exam[`i']
forvalues j=2/`J' {
replace tata[`i']=1 if (date_presc1[`i']!=date_presc`j'[`i'])
}
}

weights not allowed


*
*   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