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
xline and text on top of twoway area plotI use Code: twoway (area y1 y2 year) to create a plot and want to include a dashed vertical line on…
Identify weekdays for the high and low points in time series analysisDear all, I have a question about how to identify the weekday of the high and low points in time se…
How to generate i*j by forvalues?If year=1,2,3,4; and prov=1,2,3,4,5,6,7. So how to calculate i*j, thanks a lot! I run this,but it is…
Recode date into consecutive days from first dateHi there, I am trying to generate a new variable (called daynumber) that recodes a date (currently …
Model Selection for Categorical dataHi, I have a trouble fitting a model for a categorical data. My dependent variable recorded by a t …
Subscribe to:
Post Comments (Atom)
0 Response to Accessing Variables from Python script in Stata
Post a Comment