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]

Re: st: pasting into stata


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: pasting into stata
Date   Wed, 18 Sep 2013 08:13:00 -0400

It is not clear what your data look like, or what sort of file you are copying from, but it would almost surely be easier to put all of the data into Stata and use Stata to create the dataset you want.


Jeph

On 9/18/2013 7:36 AM, Drew Reed wrote:
Hi,

I have to paste into Stata in a certain way and I'm hoping someone
knows code that will make this easier for me. I am working with panel
data and need to populate a 'sum' variable so that I can subtract a
variable that contains entity specific information so that I can
produce a spillover variable.

I have basically collapsed my information by date so that I am given a
sum of all events that have happened during the 2813 days being used
for observations. There are 70 entities I would need to paste this
information into and as of right now the only way I know how to do
this is to go through my dataset manually, filtering by id, and then
putting in the variable.

Is there a faster way to paste as such? I had originally used a looped
code to try to generate these variables and after a week of running
this code it produced faulty measures. I'd rather just put in the time
and get it right but I'd also like to know if there is a paste option
where I can paste the same data for all id values.

Thanks in advance.

Sincerely,

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


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


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