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
Cluster-robust standard errors - a small number of clusters?Dear StataList-ers! Help! I am applying a DID in multiple treatment groups and multiple time period…
Stata merging help - date horizontalHi there, I am currently struggling to merge two data files in the way that I want on Stata, so if …
Fill in an unbalanced datasetHi all, my dataset looks as follows Code: * Example generated by -dataex-. To install: ssc instal…
String on collapse commandHi, I would like to ask a question about collapse command. I tried to collapse all data with that f…
How to handle endogeneity issues when doing probit?Dear all, I have difficulty in adjusting endogeneity after using -probit-. According to the results…
Subscribe to:
Post Comments (Atom)
0 Response to Shorten x axis
Post a Comment