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]
Re: st: reshape or something else?
From
Nick Bornschein <[email protected]>
To
[email protected]
Subject
Re: st: reshape or something else?
Date
Thu, 28 Nov 2013 13:25:01 +0100
You are great! :) It works perfect.
Am 28.11.13 13:21, schrieb Nick Cox:
clear
input value level str3 question
2.05 2 q1
3.01 2 q1
0.75 2 q1
1.99 3 q2
1.86 3 q2
0.44 3 q2
1.21 4 q3
4.22 4 q3
2.55 4 q3
end
gen id = _n
reshape wide value, i(id level) j(question) string
drop id
renpfix value
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/