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
Creating variables out of duplicatesHi, as this is my first post, I hope I meet all the criteria. I am using a large panel data set on a…
grc1leg alternatives.Dear All, I am using Stata MP on my universities Linux based super computer and it does not have us…
Merging two datasets with specific dates of start and end of period within a yearI am running on panel project where I have to merge and match two dataset . My first dataset is a se…
Why doesn't clustering change anything?Hi all, I have panel data xtset across 3 waves of children's weight and parents employment status, …
Marginal effects on predicted marginal probability after mvprobitHi! I ran a multivariate probit regression on 3 binary dependent variables using Capellari and Jenki…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with fweight and bar graphs
Post a Comment