- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Tabulate With Weight
Hello,
I am using the tabulate function for my table, and I would like to use a weighted variable to calculate N. Any idea how to do this? Thank you
I am using the tabulate function for my table, and I would like to use a weighted variable to calculate N. Any idea how to do this? Thank you
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Tabulate With Weight
If I'm understanding your question correctly, you simply need to preselect the Weight role for the specific variable; you can do this by right-clicking on the variable in the list on the left side of the data table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Tabulate With Weight
You assign the weight column in the data table with the Preselect role command in the Cols Menu.
If wt is your weight column, you can do it with the following JSL statement
:wt << preselect role(weight);
Tabulate will use that column as weight whenever it computes any statistics.
If wt is your weight column, you can do it with the following JSL statement
:wt << preselect role(weight);
Tabulate will use that column as weight whenever it computes any statistics.