I would like to do several scatterplots were I plot the correlation btw mortality and covid-cases and were I would like to identify the treatment and control by different colors, this will be done for each month. I don't know if I have done the best way but by using the following code I get a nice and neat scatterplot but were I have to do it separattly in four figures, what I now want to do is to merge all of them into one big figure but with several smaller plots. Any body knows how I can do this the best way?
twoway (scatter mortality_1000_treated new_cases_1000indiv ) (scatter mortality_1000_nontreated new_cases_1000indiv) if time== tm(2020m3)
twoway (scatter mortality_1000_treated new_cases_1000indiv ) (scatter mortality_1000_nontreated new_cases_1000indiv) if time== tm(2020m4)
twoway (scatter mortality_1000_treated new_cases_1000indiv ) (scatter mortality_1000_nontreated new_cases_1000indiv) if time== tm(2020m5)
/David
Related Posts with scatterplot
Difference in Consecutive Values by Group LabelsDear Statalisters, I need to generate another variable called 'difference' which contains the differ…
How to generate a variable which takes for every combination another value?Dear all I have a question. I have a dataset with lots of different variables and want to generate a…
sort row with string variables?Dear All, Is it possible to sort "string" variable? Suppose that the data set is Code: * Example ge…
Interpreting Sargan-Hansen TestsHi all, I am running diff GMM using Sebastian's xtdpdgmm command. However, I am not sure how to int…
outreg2 keep option does not workHello, I am in desperate need for some help for my thesis regarding Stata. I would like to make us…
Subscribe to:
Post Comments (Atom)
0 Response to scatterplot
Post a Comment