+ Reply to Thread
Results 1 to 1 of 1

Thread: Stata - Do-file capability

  1. #1
    Points: 2,403, Level: 29
    Level completed: 69%, Points required for next Level: 47

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stata - Do-file capability



    Hello,

    I am wondering about the programming capabilities of Stata when using Do-files. Essentially, I am looking to predict values using multiple regression. However, I would need to predict a large number of values and I am wondering if I can create a do-file that will help achieve this as opposed to manually performing it all.

    To give a quick idea:

    - I have 1450 data points (days), but I only want to run a regression on the 1400 data points and then predict the other 50 and see how close I come.
    - Thus, to predict day 1400, I run regress...if day<1399
    - Then, predict "yhat" if day==1400
    - I then receive this prediction, all is well
    -But now I would like to repeat and predict for day 1401 by running a regression and now using my actual data for day 1400 (not the prediction). So I regress....if day<1401....and then predict yhat if day==1402.

    So I have two questions I suppose. (1) Does Stata even have the capability to perform this sort of repeating operation? (2) Is anyone familiar enough to know what commands I would use to sort of automate this?

    Thank you kindly in advance for any of your help!!!
    Last edited by sjq2102; 05-10-2009 at 11:11 AM.

+ Reply to Thread

Similar Threads

  1. Import of Excel file into Stata!
    By Maastricht2006 in forum Stata
    Replies: 15
    Last Post: 04-26-2011, 09:04 AM
  2. Process Capability - Extreme Measurements
    By Hartwa in forum Probability
    Replies: 0
    Last Post: 12-16-2010, 11:39 AM
  3. Replies: 2
    Last Post: 12-02-2010, 06:19 AM
  4. Process capability without variability in data?
    By Dannyboy175 in forum Probability
    Replies: 5
    Last Post: 09-11-2009, 06:41 AM
  5. Process Capability
    By jessd1013 in forum Probability
    Replies: 3
    Last Post: 06-24-2008, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats