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
Mahapick with foreach loopDear Statalists, I want to find several (5) company matches based on financial data, always for a g…
change spanish letters to englishI have a data set that lists Salvadorian towns, the data has been imputed in Spanish so there are Sp…
verifying a condition for three consecutive years in panel dataHello everyone, this is my first post here and I'm relatively new to Stata so I was hoping to get so…
Help Creating New Variable Equal to the Square of the ResidualsDear all, I am using Stata 16, on mac. I want to create a new variable called resid_sq that is equa…
Time Series merge with ID classificationHello, I am currently trying to connect time series data (with long/lat attributes for each observat…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with fweight and bar graphs
Post a Comment