Simple Weighting:
Variable data
Choose a variable
to weight
- Select a variable from the list to
use for calculating weights.
- Variables defined in the Glossary using the DECLARE
instruction are included in the Variable
List if the Use
glossary transformations option is enabled.
- Variables defined in the Glossary using the DEFINE
instruction with simple logic, (for example, DEFINE
NEW_VAR = 1/75) are included in the Variable
List if the Use
glossary transformations option is enabled.
- You can only select one variable.
Show
abbreviated variable names
Displays
the abbreviated variable name generated by WinCross (up to 11 characters).
Word
wrap
- Displays the Variable
Label in word wrap mode.
- If your Variable
Labels are long and you do not enable Word
wrap, you can use the scroll bar to view the entire Variable
Label.
- Word
wrap is enabled as the default.
Find
a variable
Allows
you to enter search criteria to locate a specific variable. This is especially
useful when there are many variables in your job file and you want to
quickly locate a specific variable.
Find
Next
Allows
you to find the next variable that matches the previously entered search
criteria. This is especially useful when there are multiple variables
in your job file with similar variable names.
Add filter (optional)
Adds
an additional filter to the variable selected to weight.
Set
the target percents for each code value
The following information about the selected
variable is displayed:
Sequence #
Displays
the sequence # for the selected variable.
Code Value(s)
Displays
the Code Value(s) found in the
data file for the selected variable.
Value Label
Displays
the Value Label(s) found in the
data file for the selected variable. For variable data files with no Value Label(s), the Value
Label displayed will be the same as the Code
Value.
Observed Frequency
Displays
the frequency for each code value of the selected variable.
Observed Percent
Displays
the percent of total for each code value of the selected variable.
Target Percent
- Enter the Target
Percent for each Code Value
or combined levels of Code Value(s).
- The Total
of all target percents must add to 100%.
- There is a right-click context menu
to allow Cut, Copy, Paste, Delete
and Select All operations
in the Target Percent column.
Resulting Weight
- Displays the weight assigned based
on the Target Percent entered.
- When a variable is first selected,
the Resulting Weight is calculated
using the Target Percent that
WinCross initially assigns to each code value. WinCross attempts to
make an even distribution based on the number of code values for the
selected variable.
Clear
Percents
Use
Clear Percents to initialize Target
Percent to 0.00 for all
code values of the selected variable. Using Clear
Percents also initializes the Resulting Weight display for all code values.
Reset
Percents
Use
Reset Percents to reset Target
Percent and Resulting Weight
for all code values of the selected variable to the WinCross defaults.
Combine
Levels
Use Combine Levels to combine two or
more Code Values into one. Highlight
anywhere on the row for the code values you want to combine.
Dissolve
Level
Dissolve
Level allows you to dissolve a previously combined group of Code Values. Highlight anywhere
on the row for the code values you want to dissolve.
Set
Value Label
- Highlight anywhere on the row
for the desired code value and choose Set
Value Label to edit the Value
Label for the selected Code
Value.
- Enter the new Value Label text on the Value Label Text dialog.
Options
Variable
to which weight will be written
- Choose the variable from the dropdown
list of variables in your data file where the weight will be written.
- WinCross defaults this variable to
the first variable with "WEIGHT"
as part of the variable name.
- If there is no variable with "WEIGHT" as part of the variable
name or if you want to use a different variable in your data file,
you will need to Choose a weight
variable from the dropdown list of variables or select Create a weight variable to add
a new variable to the end of your data file.
- To Create
a weight variable that will be added to the end of your data
file, enter the Name of the new variable
and the Width of the new variable.
- In all cases, the Variable
to which the weight will be written, must be at least 5 characters
in length.
Calculate
to filtered sample size
- Calculates the weights to the filtered
sample size.
- Filtered
sample size is the total after applying the run filter.
- The Filtered
sample size will display but cannot be modified.
Calculate
to reduced sample size
- Calculates the weights to the reduced
sample size.
- Reduced
sample size is the total of all non-zero target percents.
- The Reduced
sample size will display but cannot be modified.
Calculate
to a custom sample size
- Calculates the weights to the total
entered in Custom sample size.
- When using Calculate
to a custom sample size, only the weights are adjusted. The
Data file sample size, Filtered sample size and Reduced
sample size remain the same.
Use
glossary transformations
Applies
glossary statements written in the Setup Glossary
Variables dialog prior to the calculation for simple weighting.
Run
Filter
- Enter Filter
Logic to be applied to your simple weighting calculation.
- You can select Write
all cases to file to write all cases to the output data file;
however, simple weighting will only be applied to those cases matching
the filter criteria.
- If you write all cases to the output
data file you can check the box Fill
cases that do not match filter with '1'. This allows you to
assign a weight of 1.0 to those cases that do not meet the filter
criteria but are still being written to the output data file.
- Deselect the Run
Filter is active option to remove the Run
Filter from your simple weighting calculation.
Write
Weights
- Select Write
Weights to write the weights to the open data file or a new
data file.
- Drive/Directory
- Select the file path where you would like to save your new
data file with the weights added.
- File(s)
- If you would like to save your file to a filename that
currently exists and is displayed in the File(s)
list, highlight the filename from the File(s)
list.
- Output
file - Enter a name for your output data file or select
an existing file from the File(s)
list.
- You can save to the open data file.
- You will be prompted with a message
explaining that the original data file will be backed up with a *.bak# extension added (with # = to a number, for example,
example.sav.bak1 is the first
backup file created for the original data file of example.sav).
- The newly created data file will
automatically reopen in WinCross.
- You have the option of continuing
by selecting Yes
or cancelling the save by selecting No.
- Save
file as type - Select the file type for your output data
file. The output data file must be the same type as the input data
file.
- Cases
to write - Enter the number of cases to write to the
output data file.
- Select OK
to run the simple weighting.
- Saves the sample balancing specifications
as jobname.swv to the folder
where the open job file currently resides.
- If jobname.swv
already exists, it will automatically be replaced.
Save
Saves the
simple weighting specifications as jobname.swv
to the folder where the open job file currently resides.
Load
Use Load to open a simple weighting
specifications file (*.swv) choosing
a different folder/file path from where the open job file currently resides.
Save
As
Allows
you to save the simple weighting specifications to a file name (*.swv) and location of your choosing.
Cancel
Use Cancel to exit the Run
Simple Weighting dialog. You will be prompted to save any changes
made to the Run Simple Weighting
dialog.
Related topics:
Banners
Weighting
Simple Weighting
Simple Weighting – ASCII data
Sample Balancing