Hi everybody. Apologies for any newbie mistakes in my post, I'm new both to Stata and this forum.
I know this question was answered already on multiple occasions, however, I could not use the already given solutions for my case.
My issue is that I have missing data for certain dates, I would like to range x-axis (date) from 2014m9 to 2020m10.
date bitcoin
2014m2
2014m3
2014m4
2014m5
2014m6
2014m7
2014m8
2014m9 386.944
2014m10 338.321
2014m11 378.047
2014m12 320.193
2015m1 217.464
the following were some of my attempts.
line bitcoin date || tsline date if inrange(date 2014m9/2020m10)
line bitcoin date || tsline date if inrange(107 180 74)
I ultimately tried to generate a new date variable
gen btcdate= date range 2014m9 2020m10 [74]
gen btcdate= date range 107 180 [74]
but this option attempt didn't work either, Stata kept issuing the error message "invalid range"
Please let me know if you have a solution
(this is just a section of the dataset, let me know if you need the full version)
Related Posts with Shorten x axis
Combining two variablesI have two variables which I want to combine together. Basically, the first variable has values like…
Only keep newest observationsHey everyone, Code: * Example generated by -dataex-. To install: ssc install dataex clear input lo…
Computing confidence intervals for meta-analysisHi there, I am currently attempting to run a meta-analysis on the effects of debt on economic growt…
Reshape LongDear all, I am using this code to reshape data. It does reshape but the date order of the original …
Help to correctly reduce instrument count with xtabond2 commandHello everyone, I am estimating a model where my dependent variable is economic growth and all my i…
Subscribe to:
Post Comments (Atom)
0 Response to Shorten x axis
Post a Comment