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
renaming several variables in loop to reshape by categoryi have several variables that i want to rename according to their category for example S2_Q1P- S2_Q7…
Convert Long String Order to Time IndexSo this is a separate question following from my last post. It is in regards to the same variable "q…
Small question on bar chartsI want to draw a hbar chart with three variables via the following command: graph hbar incomep90 inc…
Rangestat for leave-out mean----------------------- copy starting from the next line ----------------------- Code: * Example ge…
PSA: I need an Econometrics tutor asap $30/hrSomebody please help me study for a test ( undergrad ). I'm an adult, just went back to school durin…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with fweight and bar graphs
Post a Comment