I hope someone can help me as I have spent countless hours trying to recreate the graph output in journal article. Both DV: FS_Scale and IV:runoutworry are categorical predictors (Likert Scale from 1-7) and I want to show the trend (+/-) . For e.g. how many people on the 7 pt runoutworry(x-axis) is also showing up also as 7 pt on y-axis FS_Scale? The output I want to mimic is able to show 1 -7 for both x-axis and y-axis but when I coded it, it came out showing frequencies on y-axis instead. I think I am doing something wrong or is it impossible? Thank you so much.
Here is my code
drop if runoutworry==. drop if FS_Scale==. collapse (count) runoutworry, by(FS_Scale) browse twoway (line runoutworry FS_Scale, sort lcolor(black) lwidth(medium) lpattern(longdash)) (scatter runoutworry FS_Scale, msize(medium) msymbol(circle) mlabel(runoutworry) mlabsize(medium)), /// ytitle(count of run out worry) ylabel(0(200)1000, angle(horizontal)) xlabel(1(1)7) legend(off) plotregion(margin(large)) xtitle(FS Scale)
Related Posts with Two-way line graphs
Searching 1) for user written commands and 2) searching my .do filesHello I have 2 questions about searching in Stata 1) which is the best way to search the user/commun…
STATA has started crashing when using the "Browse" button to import CSV filesEssentially as the title describes, STATA has just started crashing when I use the "Browse" button t…
Bootstrap for regression parametrsHi everyone. I need to make bootstrap for regression paramatr for price and weight in new sample fro…
Logistic postestimation for survey dataHello, I want to do a logistic regression with survey data so I am using the svy prefix. How do I ge…
Help with standard deviations of oaxaca commandDear statalisters, I'm trying to replicate the results of the oaxaca9 command manually, but I have …
Subscribe to:
Post Comments (Atom)
0 Response to Two-way line graphs
Post a Comment