sa_weightings.xml
The sa_weightings.xml file is used to configure weightings for databases added to SuperSERVER. There must be one weightings XML file for each weighted database.
File Name | <SXV4_db_filename>_sa_weightings.xml For example, if the SXV4 filename is Survey.sxv4, the weighting file must be named Survey_sa_weightings.xml |
---|---|
Location | The same location as the SXV4 database file. For example C:\ProgramData\STR\SuperSERVER SA\databases |
Example
<DATABASE_WEIGHTINGS dbid="VISTA0709WDWE" formula_file="formula.xml">
<WEIGHT id="Trips level replicate weights" type="Replicate" level="TRIPS">
<CODE>TRIPS</CODE>
<CODE>WDWE_RW_0</CODE>
<CODE>WDWE_RW_1</CODE>
<CODE>WDWE_RW_2</CODE>
<CODE>WDWE_RW_3</CODE>
<CODE>WDWE_RW_4</CODE>
<CODE>WDWE_RW_5</CODE>
<CODE>WDWE_RW_6</CODE>
<CODE>WDWE_RW_7</CODE>
<CODE>WDWE_RW_8</CODE>
<CODE>WDWE_RW_9</CODE>
</WEIGHT>
<COEFF measure="all" weight_id="Trips level replicate weights">
<VAR id="G" value="10"/>
</COEFF>
<RSE_CONFIG formula="bootstrap"/>
</DATABASE_WEIGHTINGS>
Structure
<DATABASE_WEIGHTINGS> | Root node. This node has the following attributes:
|
---|---|
<WEIGHT> | The start of the weighting factor definitions. This node has the following attributes:
|
<CODE>Name</CODE> | For replicate weights only. One entry per replicate weight. The name must be the display name of the weighted field from the table in the database. |
</WEIGHT> | The end of the weighting factor definitions. |
<COEFF> | The start of the constant coefficient used in the formulas. this node has the following attributes:
|
<VAR ... /> | The coefficient definition:
|
</COEFF> | End of the coefficient definitions. |
<RSE_CONFIG ... /> | Sets the formula for calculation of Relative Standard Error (RSE). Prior to version 9.7, it was necessary to configure a data control plugin to calculate RSE values. From 9.7 onwards this now runs automatically for all SuperSERVER weighted databases, and will use the jackknife formula for calculating the RSE. You can still configure the plugin if you wish to change some of its other settings, although if you just want to change the formula then you can do this by editing the setting in the weightings file (if both are configured then the plugin settings take precedence). This node has the following attribute:
|
</DATABASE_WEIGHTINGS> | End of the database weighting definitions. |