Weights tab
(Edit Banner)
Weighting
is a standard practice for survey data analysis. See Weighting example for an example
of how weighting is used.
Weights can be created in any
of the following ways:
Weight
variables can be a part of your original data file.
Weight
variables can be added to your original data file or a new data file
using Simple
Weighting or Sample
Balancing.
Use
Glossary
Variables to create weighted variables.
Specify an actual value for a weight when
you set up banners.
The
following is an example of using the glossary variable method:
To create a weight for the GENDER variable using
Setup|Glossary Variables,
use ADDLEN to add columns to the end of
your data. You will have had to already calculate the weights you want
to apply. When determining field width, make sure to include a position
for the decimal point. Assuming GENDER (1) = Male and GENDER (2) = Female,
you might enter the following in the Setup Glossary Variables dialog
box:
ADDLEN 10
IF GENDER (1) ASSIGN WEIGHT = (1.250)
IF GENDER (2) ASSIGN WEIGHT = (0.833)
The gender weights will now be stored in the variable
WEIGHT. In this example, the WEIGHT variable already existed in the original
data file.
Whichever
method you use to create them, all weights are specified on the Weights
tab in Setup|Banners|Edit Banner:
- Weights can be specified with an
actual weight value or with the variable name or record/column location
that holds the actual weight value.
- An
actual weight can have up to 12 digits, can be positive or negative
and can have decimal places.
- Weight
variables must be a minimum width of 5.
Select the Weights
tab from Setup|Banners|Edit
Banner:
- Select the column(s) for weighting
in the Columns
list box.
- Enter the actual value or the variable
name or record/column location for the weight variable in the Weight variable field.
- If you specify a variable name or
record/column location rather than an actual weight and you do not
have implicit decimals in the data, you must specify the number of
decimals to be implied in the weight variable.
- Enter the number of decimal places
in the Implied decimal places in
weight field. This option lets you specify the decimal place
when your data variable does
not include an actual decimal point.
- Choose Apply
to Selected Column(s) to apply the weight entered to the selected
columns. The number of weighted columns is displayed so that you know
how many of your banner columns are weighted.
- Choose Apply
to All Columns to apply the weight entered to all banner columns
without having to select columns from the Columns
list box.
- The Columns
list box will display a "[w]" next to each weighted column
for easier identification of those columns in the banner that are
weighted.
Remove
Weights from Selected Columns
- Select the column(s) for removing
weights in the Columns list
box.
- Select the Remove
Weights from Selected Columns button to remove weights from
the selected banner columns.
Related topics:
Edit Banner
Banners
Simple Weighting
Sample Balancing
Weighting example