Hi everyone!
I am facing the following problem:
I want to import an excel that is created by another do-file.
However, in days when I don't receive new data, this excel is not created.
Therefore, if I simply try to run:
import excel "this excel - ${today}.xlsx" , ///
firstrow clear
I will receive an error all the days that I haven't received data (which means there would be no excel for ${today}.
Is there any way I can conditional the import of the excel on the existence of the file?
For example, with an "IF"?
Thanks in advance!!
Isabela
Related Posts with Importing data conditional on something
Newey-West standard errors with multiple regressions (by Identifier)Dear all, I am currently writing my thesis for which I need some help. I have a panel-data data set…
Probit estimation using MATA Optimize 'initial values not feasible'Hi, I am quite new with MATA. I am currently working on an exercise of performing probit estimation…
Fixed effect model predictionHello all, I hope everyone's doing well. Using my dataset I have found the fixed effect model to ha…
Interpreting the economic significance of regression coefficientsDear Stata members, For replicating a paper, I have chosen 2 variables, cash divided by total assets…
Coefficient Plot -- the same predictor's Beta Coefficients of Different Models in the same Plot Hi all, How to generate the Coefficient Plot which demonstrates the same predictor's beta coeffici…
Subscribe to:
Post Comments (Atom)
0 Response to Importing data conditional on something
Post a Comment