Statalist The Stata Listserver


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

Re: st: Error message 'type mismatch'


From   [email protected]
To   [email protected]
Subject   Re: st: Error message 'type mismatch'
Date   Wed, 18 Jan 2006 23:31:36 -0500 (EST)

BTW, I was using Stata 9.0 (SE).

> Hi,
>
> I transfered my data from long to wide, and thus have continuous variables
> like obrum1 through obrum10. I want to add the values of each obrum*
> variable together. I am trying to use the command egen
> obrumtot=rowtotal(obrum1-obrum10).
>
> However, it keeps giving me an error message "type mismatch". I looked
> into those 10 vars. The storage type of obrum1 and obrum2 is int., and
> that of the rest is byte. Does this have some say on the error message?
>
> I also tried to use recast to set the int. to byte., but it didn't seem to
> be working.
>
> I have done some research and didn't have any luck. Can anybody kindly
> suggest me how to deal with this?
>
>
> Many thanks,
> Ying
>
> *
> *   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/
>


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