Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: : st: Fwd: denton command


From   Christopher Baum <kit.baum@bc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: Re: : st: Fwd: denton command
Date   Fri, 26 Apr 2013 10:18:23 +0000

On Apr 26, 2013, at 2:33 AM, Condela wrote:

> 
> My log file
> 
> use C:\Users\Desktop\indor.dta
> 
> .tsset period
> 
>        time variable:  period, 2001q1 to 2012q4
> 
>                delta:  1 quarter
> 
> use C:\Users\Desktop\gdp.dta, clear
> 
> tsset year
> 
>        time variable:  year, 2001 to 2012
> 
>                delta:  1 unit
> 
> denton gdp03 using gdpq, interp(indprod)
> from(C:\Users\Desktop\indor.dta) generate(pibq)
> 
> unknown function dof.()

This worked fine for me:


. clear all

. insheet using quarter.csv
(2 vars, 48 obs)

. tsmktim period, start(2001q1)
        time variable:  period, 2001q1 to 2012q4
                delta:  1 quarter

. save quarter, replace
file quarter.dta saved

. insheet using year.csv, clear
(2 vars, 12 obs)

. tsset year, yearly
        time variable:  year, 2001 to 2012
                delta:  1 year

. save year, replace
file year.dta saved

. 
. which denton
/Users/cfbaum/Library/Application Support/Stata/ado/plus/d/denton.ado
*! denton  1.1.0   sh/cfb A810

. denton gdp03 using newfile, interp(indprod) from(~/desktop/quarter.dta) gen(pibq)
 
pibq is interpolated from the yearly series gdp03 using the quarterly series indprod
pibq is saved in newfile for the period:2001q1 to 2012q4


Kit

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                             An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
  An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html
                                                                                                   | http://www.crup.com.cn/Item/111779.aspx	


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index