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!

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!

## Comment