DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "VariableStatisticsType"
Namespace:
Content:
complex, 7 elements
Defined:
Includes:
definitions of 7 elements
Used:
XML Representation Summary
<...>
   
Content: 
VariableReference, TotalResponses?, (WeightUsedReference | WeightVariableReference)?, ExcludedMissingCategoryReference*, SummaryStatistic*, CategoryStatistics*
</...>
Content Model Elements (7):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
Includes statistical measures that describe responses to individual variables.
XML Source (w/o annotations (8); see within schema source)
<xs:complexType name="VariableStatisticsType">
<xs:sequence>
<xs:element ref="VariableReference"/>
<xs:element minOccurs="0" name="TotalResponses" type="xs:integer"/>
<xs:choice minOccurs="0">
<xs:element ref="WeightUsedReference"/>
<xs:element ref="WeightVariableReference"/>
</xs:choice>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="ExcludedMissingCategoryReference"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="SummaryStatistic"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="CategoryStatistics"/>
</xs:sequence>
</xs:complexType>
Content Element Detail (defined in this component only; 7/7)
CategoryStatistics
Type:
CategoryStatisticsType, complex content
Includes a category-level statistic for the referenced variable.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="CategoryStatistics"/>

ExcludedMissingCategoryReference
Type:
r:ReferenceType, complex content
Indicates the missing values that were excluded from the statistic. Contains a reference to the category. For the missing value.Indicates the missing values that were excluded from the statistic. Contains a reference to the category for the missing value.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="ExcludedMissingCategoryReference"/>

SummaryStatistic
Type:
SummaryStatisticType, complex content
Includes a summary statistic for the referenced variable.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="SummaryStatistic"/>

TotalResponses
Type:
xs:integer, predefined, simple content
The total number of responses to this variable. This element is especially useful if the number of responses does not match added case counts. It may also be used to sum the frequencies for variable categories.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="TotalResponses" type="xs:integer"/>

VariableReference
Type:
r:ReferenceType, complex content
Reference to the variable to which the statistics apply.
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="VariableReference"/>

WeightUsedReference
Type:
r:ReferenceType, complex content
Reference is made to the Coding element in Data Processing that contains the StandardWeight used. (If neither choice is used, no weighting factor has been applied in the calculation of this statistic.)
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="WeightUsedReference"/>

WeightVariableReference
Type:
r:ReferenceType, complex content
Reference to a variable to use for weight. (If neither choice is used, no weighting factor has been applied in the calculation of this statistic.)
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="WeightVariableReference"/>

XML schema documentation generated with DocFlex/XML SDK 1.7.2 using DocFlex/XML XSDDoc 2.1.0 template set