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
How to change a numeric variable to string variable? Tostring and decode code don't work.Dear all, I am trying to dealing with the following problem: There is a numeric variable in my datas…
Difference-in-difference analysisHello, I'm doing a difference-in-difference analysis to show the impact of removing financial incent…
converting Risk ratio from quantiles to tertilesWe summarize the associations corresponding to the top versus bottom third of the baseline FGF-23 co…
Heckman selectionHello friends, I am trying to run a model about ethnic pay gap and use heckman selection method to …
converting Risk ratio from quantiles to tertilesI am Hatem Ali We summarize the associations corresponding to the top versus bottom third of the bas…
Subscribe to:
Post Comments (Atom)
0 Response to Accessing Variables from Python script in Stata
Post a Comment