EconPapers    
Economics at your fingertips  
 

LASTUPTO: Stata module to collapse a dataset to have 1 observation for each of a list of X-values

Roger Newson

Statistical Software Components from Boston College Department of Economics

Abstract: lastupto inputs a dataset in memory with an X-variable, a list of X-values, and (optionally) a list of by-variables. It creates an output dataset (or resultsset}, with 1 observation per provided X-value in the list (or per X-value per by-group), and data on the variable values in the last observation in the dataset (or by-group) with an X-value up to and including the provided X-value, when the observations have been sorted by by-group, then by their X-values, and then by their pre-existing order. lastupto is very useful for condensing Kaplan-Meier curves in big datasets. lastupto uses the SSC package expgen, which must be installed if lastupto is to work.

Language: Stata
Requires: Stata version 10.0 and expgen from SSC (q.v.)
Keywords: data management; collapse (search for similar items in EconPapers)
Date: 2018-08-06
Note: This module should be installed from within Stata by typing "ssc install lastupto". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/l/lastupto.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lastupto.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458513

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s458513