This is probably an extremely elementary question and I am so sorry in advance.
I have a dataset of 420 comments that are followed by 31 columns of various variables. For each variable, either a 0 or 1 was assigned if the comment met that criteria. For example,
CommentID Recommendation Deserve SOL Unmerit etc.....
1 139 0 1 1 0
2 14 0 1 0 1
3 8 1 0 1 1
I need to make a bar graph that displays the mean of the variables weighted by how many recommendations each variable had. I know that I need to use the fweight command but my code is definitely wrong.
This is what I had:
graph bar Deserve SOL Unmerit etc [fweight=Recommend]. Thank you so much!
Related Posts with Problem with fweight and bar graphs
Long data formatting and Clogit model for discrete choice experiments with multiple choice questionsI have survey data from a discrete choice experiment where each survey respondent was asked to compl…
Drawing the yearly production of 16 region in one graphHello Stata users; I have this data: Code: * Example generated by -dataex-. To install: ssc insta…
converting "None"(python) to "" (Stata).Hi , manipulating a list in python I ended up with the following tuple, which I need to send to sta…
Exporting psmatch2 results on the matched sample: a solution with esttabI am writing my thesis right now and have had many troubles trying to export the results of the user…
Creating filename as columns in multiple files dta files before appendingHi, I am trying to include the name of the file as a variable before appending. Please see code bel…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with fweight and bar graphs
Post a Comment