I am working on a project where I need to collect daily values for variables where each day is in it's own csv named by the date. I want to create a date variable that is based on the file name so that I can combine all of these daily data sets. For some reason, none of the string editing functions in stata are recognized by my version 16 (which is a whole other issue in itself and I haven't been able to find from where I can install these) so I decided to call a python script that can take care of the string editing for me. I can get my variables into stata but I cant find anywhere on the stata documentation for python integration how to actually get the processed text out. I know they can be viewed using python describe but how do I actually access them so I can create the date variable in stata?
Related Posts with Accessing Variables from Python script in Stata
Direction (Sign) of Granger Causality PVAR testsHello, I have performed PVAR Granger causality tests on a (N23, T10) Panel. I have found that X gra…
Tsset--ITSA issueArray Hi all, I am setting a variable up like the above. However, when I try to run itsa analysis u…
Sum variables and division of the result Hi, I would like to sum two variables of my sample and then divide these two results together. Fin…
How to calculate buy-and-hold return based on daily return dataHello, I have daily data for multiple firms. How to calculate buy-and-hold return based on daily ret…
Unbalanced PanelArray Hi all, I am trying to run ITSA analysis and I have a weakly balanced panel. Can you help me f…
Subscribe to:
Post Comments (Atom)
0 Response to Accessing Variables from Python script in Stata
Post a Comment