I tried to convert daily stock returns to weekly returns for panel data with firm, date, and returns (simple) for each observation. I tried using the ascol command with the following syntax:
ascol RET , toweek time(date) panel(permno) returns(simple) keep(all)
date is the date of the daily return in CRSP, and permno is the firm identifier on CRSP.
Stata always returns an error code of 3301:
PRODUCT(): 3301 subscript invalid
asrolnw(): - function returned error
<istmt>: - function returned error
The sample consists of about 20,000 firms and 32 years.
Does anyone know what the error code implies here? How should I fix my syntax to make it work? Thank you!
Related Posts with Using ascol command to calculate weekly returns using CRSP daily returns
Markov Switching Model of the Business CycleHello everyone, Can anyone guide me about Markov Switching Model of the Business Cycle, I have the …
What is the syntax of Panel ARDL model with DCCE estimator (xtdcce2)?Dear all, I am learning Stata and trying to find out how to use the xtdcce2? I installed xtdcce2 v…
Expanding years for mergingDear Statalist William Lisowski I would like to generate the year 2009, 2010, 2012, 2013, 2015, 201…
Export a table in a descriptive statistics/reg format to doc fileHello, I am trying to export my statistics table to doc, in a "publication format". I have: income…
Different results in Propensity Scores from probit reg using probit and psmatch2 probit.I'm trying to estimate the AT on my treated group using psmatch2. I don't get why the probit regress…
Subscribe to:
Post Comments (Atom)
0 Response to Using ascol command to calculate weekly returns using CRSP daily returns
Post a Comment