Statalist


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

Re: st: RE: Tabulation task


From   Serguei Kaniovski <[email protected]>
To   [email protected]
Subject   Re: st: RE: Tabulation task
Date   Fri, 15 Aug 2008 10:45:21 +0200

The problem is that the VALUES of the variable Vote_id in second file are contained in the NAMES of the Vx varibales in the first file. And I cannot figure out how to work with this.

Serguei

Martin Weiss schrieb:

Not sure whether I get this problem right: if there is a unique key that
ties the person`s vote in the first file to the Vote _id in the second file,
then -merge- on the unique key and - tabulate- (-tab2-) afterwards.

HTH Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Serguei Kaniovski
Sent: Friday, August 15, 2008 9:39 AM
To: [email protected]
Subject: st: Tabulation task

Hallo,

I am stuck with the following tabulation tast. I have two datafiles. One contains the following variables:

Name, Country, V1, V2, V3, V4, ... large number
where Vx signifies a persons vote on issue x (numeric, categorical)

A second file contains the issue types (string) of each vote as follows:

Vote_id, Vote_issue
where Vote _id is numeric and corresponds to 1, 2, 3, 4, ..., Vote_issue is a string decribing the voting issue.

How can I read in the issue types and tabulate the V-variables by issue and country?

Thank you very much,
Serguei
*
* 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/

*
* 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/
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index