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]

AW: st: Combining two financial reports in the same calendar year


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: Combining two financial reports in the same calendar year
Date   Sun, 4 Jul 2010 15:39:18 +0200

<> 


In these particular circumstances, -collapse- can be used to similar effect
as -reshape wide-, but whether the result is better than a long form is
doubtful:


*************
clear*
set obs 230
gen int nurshome=_n
expand 2
bys nurshome: gen byte observation=_n

collapse (firstnm) firstobs=observation  /* 
*/ (lastnm) lastobs=observation, by(nurshome)

l, noo sepby(nurshome)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Duha Altindag
Gesendet: Sonntag, 4. Juli 2010 15:33
An: [email protected]
Betreff: Re: st: Combining two financial reports in the same calendar year

-collapse- will make it.

On Sun, Jul 4, 2010 at 11:40 AM, Matthew Krauchunas
<[email protected]> wrote:
> Hello,
>
> I am working with California nursing home data and I have a number of
> nursing homes that have numerous financial reports in the same
> calendar year that I need to combine.  For instance, nursing home ABC
> has one financial report covering period Jan 1, 2004 - Mar 31, 2004
> and another Apr 1, 2004 - Dec 31, 2004.  Is there a way in Stata to
> combine these two "observations" into a single observation?
>
> Thank you,
> Matt
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index