Use the -if qualifier- :
arima sales if customer == "name", ar(1)
Scott
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Michael Crain
> Sent: Thursday, April 12, 2007 4:41 PM
> To: [email protected]
> Subject: st: Time series analysis by subsets within data set
>
> I am having difficulty in a time series analysis.
>
> My data set looks like this:
> Week
> Customer
> Sales
>
> I want to perform time series analysis on EACH CUSTOMER. I cannot figure
> out how to run the time series commands (e.g., graphics, arima) on each
> customer seperately within a single data set.
>
> Any help is appreciated. Thank you.
>
> M. Crain
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/