Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Alexander Nervedi <alexnerdy@hotmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: reading in 150 stored regression models from csv file, one at a time and using predict ... ? |
Date | Fri, 22 Nov 2013 18:46:52 +0000 |
Hi Stata-masters, I have transactions data on 205 different commodity groups, and have estimated simple OLS models for hedonic prices each of these groups - simple reg y x1 x2 x3 x4 x5, where y is prices and x1, ... x5 are attributes of the commodities. I have stored these models in coef.csv using parmby and outsheet. Now i would like to read in the regressions from each of the these 205 models, and try to figure out what the prices would have been across each of the 205 categories if the structural relationship looked like it does for commodity group `j' where `j' takes on values from 1 to 205. I need to read in the coefs and run predict for the entire sample one set of coefs a time - but how do i get that to happen since predict doesn't work unless an ols command has been run ... thanks, Alex * * 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/