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
Getting a different result w. do-file and copy-pastHello everyone, I am getting a different result when I run my do-file and when I copy-past my code …
How many pre-treatment periods we should test for paralell trend in the case of daily data?In a difference-in-differences setting, if we deal with yearly data, we normally test the parallel t…
How to perform the pre-trend test in did_imputation?From reading the help file of did_imputation, I saw that pretrends(integer): if some value k>…
customizable tables: issue with appending tablesIn my experience the option 'append' sometimes works and sometimes doesn't - could anyone explain th…
How to conclude the result of paralell-trend test following Borusyak's approach?I am doing a parallel trend test suggested by Borusyak by using event_plot My code and result is as …
Subscribe to:
Post Comments (Atom)
0 Response to Accessing Variables from Python script in Stata
Post a Comment