Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: reshape command error


From   "Selameab, Tehout" <[email protected]>
To   <[email protected]>
Subject   st: reshape command error
Date   Tue, 16 Nov 2010 14:44:39 -0600

Hello Stata users:
 
I'm not very experienced in STATA; trying to learn it. I cannot see the problem with my reshape command. I have a dataset with multiple rows per id. Each client has unique problem types (this is a social services dataset). I want to reshape the dataset into one row per client.
 
 
My data looks like this:
 
Id	probnum	obs
1	1		1
1	12		2
1	14		3
1	39		4
1	40		5
1	49		6
 
My code is this:
reshape wide probnum, i(fid) j(obs)

I keep getting the error message: problem not constant within id.
What am I missing?!

Many thanks,
Tehout

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index