Title: | R Interface to DDI Codebook 2.5 |
---|---|
Description: | A direct interface to the underlying XML representation of DDI Codebook 2.5 with flexible API creation. |
Authors: | Daniel Woulfin [aut, cre] , Patrick Anker [aut] , Global TIES for Children [cph] (https://steinhardt.nyu.edu/ihdsc/global-ties) |
Maintainer: | Daniel Woulfin <[email protected]> |
License: | GPL-3 |
Version: | 0.1.1 |
Built: | 2024-11-01 06:26:10 UTC |
Source: | https://github.com/nyuglobalties/rddi |
Convert XML trees to DDI objects
as_ddi(x, ...)
as_ddi(x, ...)
x |
An |
... |
Arguments to pass to methods. |
The DDI equivalent of the XML tree.
Get XML representation of ddi_node objects
as_xml(x, ...)
as_xml(x, ...)
x |
A |
... |
Arguments to pass to methods. |
An xml_document
or xml_node
object whether the object is a root node or not, respectively.
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample"))))) as_xml(cb)
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample"))))) as_xml(cb)
Functionally equivalent to as.character(as_xml(ddi_node_obj))
.
as_xml_string(x, ...)
as_xml_string(x, ...)
x |
A ddi_node object. |
... |
Arguments forwarded to |
A string containing the text representation of XML.
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample"))))) as_xml_string(cb)
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample"))))) as_xml_string(cb)
Information on data appraisal.
ddi_anlyInfo(...) ddi_dataAppr(...) ddi_EstSmpErr(...) ddi_respRate(...)
ddi_anlyInfo(...) ddi_dataAppr(...) ddi_EstSmpErr(...) ddi_respRate(...)
... |
Child nodes or attributes. |
Parent nodes
anlyInfo
is contained in method
.
anlyInfo specific child nodes
ddi_dataAppr()
are other issues pertaining to data appraisal. Describe
here issues such as response variance, nonresponse rate and testing for bias,
interviewer and response bias, confidence levels, question bias, etc.
Attribute type allows for optional typing of data appraisal processes and
option for controlled vocabulary.
ddi_EstSmpErr()
are estimates of sampling error. This element is a
measure of how precisely one can estimate a population value from a given
sample.
ddi_respRate()
is the response rate. The percentage of sample members
who provided information. This may include a broader description of
stratified response rates, information affecting response rates etc.
A ddi_node object.
ddi_anlyInfo() # Functions that need to be wrapped in ddi_anlyInfo() ddi_dataAppr("These data files were obtained from the United States House of Representatives, who received them from the Census Bureau accompanied by the following caveats...") ddi_EstSmpErr("To assist NES analysts, the PC SUDAAN program was used to compute sampling errors for a wide-ranging example set of proportions estimated from the 1996 NES Pre-election Survey dataset...") ddi_respRate("For 1993, the estimated inclusion rate for TEDS-eligible providers was 91 percent, with the inclusion rate for all treatment providers estimated at 76 percent (including privately and publicly funded providers).")
ddi_anlyInfo() # Functions that need to be wrapped in ddi_anlyInfo() ddi_dataAppr("These data files were obtained from the United States House of Representatives, who received them from the Census Bureau accompanied by the following caveats...") ddi_EstSmpErr("To assist NES analysts, the PC SUDAAN program was used to compute sampling errors for a wide-ranging example set of proportions estimated from the 1996 NES Pre-election Survey dataset...") ddi_respRate("For 1993, the estimated inclusion rate for TEDS-eligible providers was 91 percent, with the inclusion rate for all treatment providers estimated at 76 percent (including privately and publicly funded providers).")
Provides information regarding whom or what the variable/nCube describes. The element may be repeated only to support multiple language expressions of the content. More information on this element, especially its allowed attributes, can be found in the references.
ddi_anlysUnit(...)
ddi_anlysUnit(...)
... |
Child nodes or attributes. |
Parent nodes
anlysUnit
is contained in nCube
and var
.
A ddi_node object.
ddi_anlysUnit("This variable reports election returns at the constituency level.")
ddi_anlysUnit("This variable reports election returns at the constituency level.")
The geographic bounding polygon field allows the creation of multiple polygons to describe in a more detailed manner the geographic area covered by the dataset. It should only be used to define the outer boundaries of a covered area. For example, in the United States, such polygons can be created to define boundaries for Hawaii, Alaska, and the continental United States, but not interior boundaries for the contiguous states. This field is used to refine a coordinate-based search, not to actually map an area. If the boundPoly element is used, then geoBndBox MUST be present, and all points enclosed by the boundPoly MUST be contained within the geoBndBox. Elements westBL, eastBL, southBL, and northBL of the geoBndBox should each be represented in at least one point of the boundPoly description. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_boundPoly(...)
ddi_boundPoly(...)
... |
Child nodes or attributes. |
Parent nodes
boundPoly
is contained in sumDscr
.
A ddi_node object.
# ddi_boundPoly requires ddi_polygon(). ddi_polygon then requires ddi_point() # which requires ddi_gringLat() and ddi_gringLon() ddi_boundPoly(ddi_polygon( ddi_point( ddi_gringLat("42.002207"), ddi_gringLon("-120.005729004") ) ) )
# ddi_boundPoly requires ddi_polygon(). ddi_polygon then requires ddi_point() # which requires ddi_gringLat() and ddi_gringLon() ddi_boundPoly(ddi_polygon( ddi_point( ddi_gringLat("42.002207"), ddi_gringLon("-120.005729004") ) ) )
catgry
is a description of a particular categorical response.
ddi_catgryGrp()
groups the responses together. More information on these
elements, especially their allowed attributes, can be found in the references.
ddi_catgry(...) ddi_catgryGrp(...) ddi_catStat(...) ddi_catValu(...)
ddi_catgry(...) ddi_catgryGrp(...) ddi_catStat(...) ddi_catValu(...)
... |
Child nodes or attributes. |
Parent nodes
catgry
and catgryGrp
is contained in var
.
catgry and catgryGrp specific child nodes
ddi_catStat()
is a category level statistic. May include frequencies,
percentages, or crosstabulation results. The attribute "type" indicates the
type of statistics presented - frequency, percent, or crosstabulation. If a
value of "other" is used for this attribute, the "otherType" attribute should
take a value from a controlled vocabulary. This option should only be used
when applying a controlled vocabulary to this attribute. Use the complex
element controlledVocabUsed to identify the controlled vocabulary to which
the selected term belongs.
catgry specific child nodes
ddi_catValu()
is the category value.
A ddi_node object.
ddi_catgry(missing = "Y", missType = "inap") ddi_catgryGrp(missing = "N") # Functions that need to be wrapped in ddi_catgry() or ddi_catgryGrp() ddi_catStat(type = "freq", "256") # Functions that need to be wrapped in ddi_catgry() ddi_catValu("9")
ddi_catgry(missing = "Y", missType = "inap") ddi_catgryGrp(missing = "N") # Functions that need to be wrapped in ddi_catgry() or ddi_catgryGrp() ddi_catStat(type = "freq", "256") # Functions that need to be wrapped in ddi_catgry() ddi_catValu("9")
Citation entities for the study including general citations and source
citations. Citation is a required element in the DDI-Codebook.
fileCitation
provides a full bibliographic citation option for each data file described
in fileDscr
. The minimum element set includes: titl
, IDNo
, authEnty
, producer
, and
prodDate
. If a DOI is available for the data enter this in the IDNo
.
More information on these elements, especially their allowed attributes, can
be found in the references.
ddi_citation(...) ddi_sourceCitation(...) ddi_fileCitation(...) ddi_biblCit(...) ddi_holdings(...)
ddi_citation(...) ddi_sourceCitation(...) ddi_fileCitation(...) ddi_biblCit(...) ddi_holdings(...)
... |
Child nodes or attributes. |
Parent nodes
citation
is contained in the following elements: docDscr
; othRefs
;
otherMat
; relMat
; relPubl
; relStdy
; and stdyDscr
. sourceCitation
is contained in the sources
element. fileCitation
is included in the
fileTxt
element.
citation, sourceCitation, and fileCitation specific child nodes
ddi_biblCit()
is the complete bibliographic reference containing all of the
standard elements of a citation that can be used to cite the work. The "format"
attribute is provided to enable specification of the particular citation style
used, e.g., APA, MLA, Chicago, etc.
ddi_holdings()
is information concerning either the physical or electronic
holdings of the cited work. Attributes include: location–The physical location
where a copy is held; callno–The call number for a work at the location
specified; and URI–A URN or URL for accessing the electronic copy of the cited work.
A ddi_node object..
ddi_citation() ddi_sourceCitation() ddi_fileCitation() # An example using the ddi_biblCit() child: ddi_citation( ddi_biblCit(format = "APA", "Full citation text") ) # An example using the ddi_holdings() child: ddi_citation( ddi_holdings(location = "ICPSR DDI Repository", callno = "inap.", URI = "http://www.icpsr.umich.edu/DDIrepository/", "Marked-up Codebook for Current Population Survey, 1999: Annual Demographic File") )
ddi_citation() ddi_sourceCitation() ddi_fileCitation() # An example using the ddi_biblCit() child: ddi_citation( ddi_biblCit(format = "APA", "Full citation text") ) # An example using the ddi_holdings() child: ddi_citation( ddi_holdings(location = "ICPSR DDI Repository", callno = "inap.", URI = "http://www.icpsr.umich.edu/DDIrepository/", "Marked-up Codebook for Current Population Survey, 1999: Annual Demographic File") )
The root node of a DDI 2.5 Codebook file. This file must contain stdyDscr. More information on this element, especially the allowed attributes, can be found in the references.
ddi_codeBook(...)
ddi_codeBook(...)
... |
Child nodes or attributes. |
A ddi_node object
# All ddi_codeBook() functions must contain ddi_stdyDscr(), # which also has ddi_citation() as a required child element. ddi_codeBook(ddi_stdyDscr(ddi_citation()))
# All ddi_codeBook() functions must contain ddi_stdyDscr(), # which also has ddi_citation() as a required child element. ddi_codeBook(ddi_stdyDscr(ddi_citation()))
Describe specific coding instructions used in data processing, cleaning, assession, or tabulation. Element relatedProcesses allows linking a coding instruction to one or more processes such as dataProcessing, dataAppr, cleanOps, etc. Use the txt element to describe instructions in a human readable form. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_codingInstructions(...) ddi_command(...)
ddi_codingInstructions(...) ddi_command(...)
... |
Child nodes or attributes. |
Parent nodes
codingInstructions
is contained in method
.
codingInstructions specific child nodes
ddi_command()
provides command code for the coding instruction. The
formalLanguage attribute identifies the language of the command code.
A ddi_node object.
codingInstructions documentation
ddi_codingInstructions() # Functions that need to be wrapped in ddi_codingInstructions() ddi_command(formalLanguage = "SPSS", "RECODE V1 TO V100 (10 THROUGH HIGH = 0)")
ddi_codingInstructions() # Functions that need to be wrapped in ddi_codingInstructions() ddi_command(formalLanguage = "SPSS", "RECODE V1 TO V100 (10 THROUGH HIGH = 0)")
The element cohort is used when the nCube contains a limited number of categories from a particular variable, as opposed to the full range of categories. The attribute "catRef" is an IDREF to the actual category being used. The attribute "value" indicates the actual value attached to the category that is being used. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_cohort(...)
ddi_cohort(...)
... |
Child nodes or attributes. |
Parent nodes
cohort
is contained in dmns
.
A ddi_node object.
ddi_cohort(catRef = "CV24_1", value = "1")
ddi_cohort(catRef = "CV24_1", value = "1")
The general subject to which the parent element may be seen as pertaining. This element serves the same purpose as the keywords and topic classification elements, but at the data description level. The "vocab" attribute is provided to indicate the controlled vocabulary, if any, used in the element, e.g., LCSH (Library of Congress Subject Headings), MeSH (Medical Subject Headings), etc. The "vocabURI" attribute specifies the location for the full controlled vocabulary. More information on this element, especially its allowed attributes, can be found in the references.
ddi_concept(...)
ddi_concept(...)
... |
Child nodes or attributes. |
Parent nodes
concept
is contained in the following elements: anlyUnit
; anlysUnit
;
collMode
; dataKind
; geogCover
; geogUnit
; nCubeGrp
; nation
;
resInstru
; sampProc
; srcOrig
; timeMeth
; universe
; var
; and varGrp
.
A ddi_node object.
ddi_concept(vocab = "LCSH", vocabURI = "http://lcweb.loc.gov/catdir/cpso/lcco/lcco.html", source = "archive", "more experience")
ddi_concept(vocab = "LCSH", vocabURI = "http://lcweb.loc.gov/catdir/cpso/lcco/lcco.html", source = "archive", "more experience")
Names and addresses of individuals responsible for the work. Individuals listed as contact persons will be used as resource persons regarding problems or questions raised by the user community. The URI attribute should be used to indicate a URN or URL for the homepage of the contact individual. The email attribute is used to indicate an email address for the contact individual. More information on this element, especially its allowed attributes, can be found in the references.
ddi_contact(...)
ddi_contact(...)
... |
Child nodes or attributes. |
Parent nodes
contact
is contained in the following elements: distStmt
and useStmt
.
A ddi_node object.
ddi_contact(affiliation = "University of Wisconson", email = "jsmith@...", "Jane Smith")
ddi_contact(affiliation = "University of Wisconson", email = "jsmith@...", "Jane Smith")
Provides a code value, as well as a reference to the code list from which the value is taken. Note that the CodeValue can be restricted to reference an enumeration. More information on this element, especially the allowed attributes, can be found in the references.
ddi_controlledVocabUsed(...) ddi_codeListAgencyName(...) ddi_codeListID(...) ddi_codeListName(...) ddi_codeListSchemeURN(...) ddi_codeListURN(...) ddi_codeListVersionID(...)
ddi_controlledVocabUsed(...) ddi_codeListAgencyName(...) ddi_codeListID(...) ddi_codeListName(...) ddi_codeListSchemeURN(...) ddi_codeListURN(...) ddi_codeListVersionID(...)
... |
Child nodes or attributes. |
Parent node
controlledVocabUsed
is contained in docDscr
.
controlledVocabUsed specific child nodes
ddi_codeListAgencyName()
is the agency maintaining the code list.
ddi_codeListID()
identifies the code list that the value is taken from.
ddi_codeListName()
identifies the code list that the value is taken from
with a human-readable name.
ddi_codeListSchemeURN()
identifies the code list scheme using a URN.
ddi_codeListURN()
identifies the code list that the value is taken from
with a URN.
ddi_codeListVersionID()
is the version of the code list. (Default value
is 1.0).
A ddi_node object.
controlledVocabUsed documentation
codeListAgencyName documentation
codeListSchemeURN documentation
codeListVersionID documentation
ddi_controlledVocabUsed(ddi_codeListID("TimeMethod"), ddi_codeListName("Time Method"), ddi_codeListAgencyName("DDI Alliance"), ddi_codeListVersionID("1.2"), ddi_codeListURN("urn:ddi-cv:TimeMethod:1.2"), ddi_codeListSchemeURN(" http://www.ddialliance.org/Specification/ DDI-CV/TimeMethod_1.2_Genericode1.0_DDI-CVProfile1.0.xml"), ddi_usage())
ddi_controlledVocabUsed(ddi_codeListID("TimeMethod"), ddi_codeListName("Time Method"), ddi_codeListAgencyName("DDI Alliance"), ddi_codeListVersionID("1.2"), ddi_codeListURN("urn:ddi-cv:TimeMethod:1.2"), ddi_codeListSchemeURN(" http://www.ddialliance.org/Specification/ DDI-CV/TimeMethod_1.2_Genericode1.0_DDI-CVProfile1.0.xml"), ddi_usage())
This section describes data access conditions and terms of use for the data collection. In cases where access conditions differ across individual files or variables, multiple access conditions can be specified. More information on this element, especially the allowed attributes, can be found in the references.
ddi_dataAccs(...)
ddi_dataAccs(...)
... |
Child nodes or attributes. |
Parent node
dataAccs
is contained in stdyDscr
.
A ddi_node object.
ddi_dataAccs()
ddi_dataAccs()
Information about the data collection methodology employed in the codebook. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_dataColl(...) ddi_actMin(...) ddi_cleanOps(...) ddi_collectorTraining(...) ddi_collMode(...) ddi_collSitu(...) ddi_ConOps(...) ddi_dataCollector(...) ddi_deviat(...) ddi_frequenc(...) ddi_instrumentDevelopment(...) ddi_resInstru(...) ddi_sampProc(...) ddi_timeMeth(...) ddi_weight(...)
ddi_dataColl(...) ddi_actMin(...) ddi_cleanOps(...) ddi_collectorTraining(...) ddi_collMode(...) ddi_collSitu(...) ddi_ConOps(...) ddi_dataCollector(...) ddi_deviat(...) ddi_frequenc(...) ddi_instrumentDevelopment(...) ddi_resInstru(...) ddi_sampProc(...) ddi_timeMeth(...) ddi_weight(...)
... |
Child nodes or attributes. |
Parent nodes
dataColl
is contained in method
.
dataColl specific child nodes
ddi_actMin()
is the summary of actions taken to minimize data loss.
Includes information on actions such as follow-up visits, supervisory
checks, historical matching, estimation, etc.
ddi_cleanOps()
are the methods used to "clean" the data collection,
e.g., consistency checking, wild code checking, etc. The "agency" attribute
permits specification of the agency doing the data cleaning.
ddi_collectorTraining()
describes the training provided to data
collectors including interviewer training, process testing, compliance with
standards etc. This is repeatable for language and to capture different
aspects of the training process. The type attribute allows specification of
the type of training being described.
ddi_collMode()
is the method used to collect the data; instrumentation
characteristics.
ddi_collSitu()
is the description of noteworthy aspects of the data
collection situation. Includes information on factors such as
cooperativeness of respondents, duration of interviews, number of
call-backs, etc.
ddi_ConOps()
are control operations. These are methods to facilitate
data control performed by the primary investigator or by the data archive.
Specify any special programs used for such operations. The "agency"
attribute maybe used to refer to the agency that performed the control
operation.
ddi_dataCollector()
is the entity (individual, agency, or institution)
responsible for administering the questionnaire or interview or compiling
the data. This refers to the entity collecting the data, not to the entity
producing the documentation.
ddi_deviat()
are major deviations from the sample design. This is
information indicating correspondence as well as discrepancies between the
sampled units (obtained) and available statistics for the population (age,
sex-ratio, marital status, etc.) as a whole.
ddi_frequenc()
is the frequency of data collection. It's for data
collected at more than one point in time.
ddi_instrumentDevelopment()
describes any development work on the data
collection instrument.
ddi_resInstru()
is the type of data collection instrument used.
ddi_sampProc()
is the type of sample and sample design used to select
the survey respondents to represent the population. May include reference
to the target sample size and the sampling fraction.
ddi_weight()
defines the weights used to produce accurate statistical
results within the sampling procedures. Describe here the criteria for
using weights in analysis of a collection. If a weighting formula or
coefficient was developed, provide this formula, define its elements, and
indicate how the formula is applied to data.
A ddi_node object.
collectorTraining documentation
instrumentDevelopment documentation
ddi_dataColl() # Functions that need to be wrapped in ddi_dataColl() ddi_actMin("To minimize the number of unresolved cases and reduce the potential nonresponse bias, four follow-up contacts were made with agencies that had not responded by various stages of the data collection process.") ddi_cleanOps("Checks for undocumented codes were performed, and data were subsequently revised in consultation with the principal investigator.") ddi_collectorTraining(type = "interviewer training", "Describe research project, describe population and sample, suggest methods and language for approaching subjects, explain questions and key terms of survey instrument.") ddi_collMode("telephone interviews") ddi_collSitu("There were 1,194 respondents who answered questions in face-to-face interviews lasting approximately 75 minutes each.") ddi_ConOps(agency = "ICPSR", "Ten percent of data entry forms were reentered to check for accuracy.") ddi_dataCollector(abbr = "SRC", affiliation = "University of Michigan", role = "questionnaire administration", "Survey Research Center") ddi_deviat("The suitability of Ohio as a research site reflected its similarity to the United States as a whole. The evidence extended by Tuchfarber (1988) shows that Ohio is representative of the United States in several ways: percent urban and rural, percent of the population that is African American, median age, per capita income, percent living below the poverty level, and unemployment rate. Although results generated from an Ohio sample are not empirically generalizable to the United States, they may be suggestive of what might be expected nationally.") ddi_frequenc("monthly") ddi_instrumentDevelopment(type = "pretesting", "The questionnaire was pre-tested with split-panel tests, as well as an analysis of non-response rates for individual items, and response distributions.") ddi_resInstru("structured") ddi_sampProc("National multistage area probability sample") ddi_weight("The 1996 NES dataset includes two final person-level analysis weights which incorporate sampling, nonresponse, and post-stratification factors. One weight (variable #4) is for longitudinal micro-level analysis using the 1996 NES Panel. The other weight (variable #3) is for analysis of the 1996 NES combined sample (Panel component cases plus Cross-section supplement cases). In addition, a Time Series Weight (variable #5) which corrects for Panel attrition was constructed. This weight should be used in analyses which compare the 1996 NES to earlier unweighted National Election Study data collections.")
ddi_dataColl() # Functions that need to be wrapped in ddi_dataColl() ddi_actMin("To minimize the number of unresolved cases and reduce the potential nonresponse bias, four follow-up contacts were made with agencies that had not responded by various stages of the data collection process.") ddi_cleanOps("Checks for undocumented codes were performed, and data were subsequently revised in consultation with the principal investigator.") ddi_collectorTraining(type = "interviewer training", "Describe research project, describe population and sample, suggest methods and language for approaching subjects, explain questions and key terms of survey instrument.") ddi_collMode("telephone interviews") ddi_collSitu("There were 1,194 respondents who answered questions in face-to-face interviews lasting approximately 75 minutes each.") ddi_ConOps(agency = "ICPSR", "Ten percent of data entry forms were reentered to check for accuracy.") ddi_dataCollector(abbr = "SRC", affiliation = "University of Michigan", role = "questionnaire administration", "Survey Research Center") ddi_deviat("The suitability of Ohio as a research site reflected its similarity to the United States as a whole. The evidence extended by Tuchfarber (1988) shows that Ohio is representative of the United States in several ways: percent urban and rural, percent of the population that is African American, median age, per capita income, percent living below the poverty level, and unemployment rate. Although results generated from an Ohio sample are not empirically generalizable to the United States, they may be suggestive of what might be expected nationally.") ddi_frequenc("monthly") ddi_instrumentDevelopment(type = "pretesting", "The questionnaire was pre-tested with split-panel tests, as well as an analysis of non-response rates for individual items, and response distributions.") ddi_resInstru("structured") ddi_sampProc("National multistage area probability sample") ddi_weight("The 1996 NES dataset includes two final person-level analysis weights which incorporate sampling, nonresponse, and post-stratification factors. One weight (variable #4) is for longitudinal micro-level analysis using the 1996 NES Panel. The other weight (variable #3) is for analysis of the 1996 NES combined sample (Panel component cases plus Cross-section supplement cases). In addition, a Time Series Weight (variable #5) which corrects for Panel attrition was constructed. This weight should be used in analyses which compare the 1996 NES to earlier unweighted National Election Study data collections.")
Description of variables within the Codebook. More information on this element, especially the allowed attributes, can be found in the references.
ddi_dataDscr(...)
ddi_dataDscr(...)
... |
Child nodes or attributes. |
Parent node
dataDscr
is contained in codeBook
.
A ddi_node object
ddi_dataDscr()
ddi_dataDscr()
Allows for assigning a hash value (digital fingerprint) to the data or data file. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_dataFingerprint(...) ddi_algorithmSpecification(...) ddi_algorithmVersion(...) ddi_digitalFingerprintValue(...)
ddi_dataFingerprint(...) ddi_algorithmSpecification(...) ddi_algorithmVersion(...) ddi_digitalFingerprintValue(...)
... |
Child nodes or attributes. |
Parent nodes
dataFingerprint
is contained in fileDscr
.
dataFingerprint specific child nodes
ddi_algorithmSpecification()
ddi_algorithmVersion()
ddi_digitalFingerprintValue()
A ddi_node object.
algorithmSpecification documentation
algorithmVersion documentation
digitalFingerprintValue documentation
ddi_dataFingerprint() # Functions that need to be wrapped in ddi_Fingerprint() ddi_algorithmSpecification() ddi_algorithmVersion() ddi_digitalFingerprintValue()
ddi_dataFingerprint() # Functions that need to be wrapped in ddi_Fingerprint() ddi_algorithmSpecification() ddi_algorithmVersion() ddi_digitalFingerprintValue()
Identifies a physical storage location for an individual data entry, serving as a link between the physical location and the logical content description of each data item. . It is used to describe the physical location of aggregate/tabular data in cases where the nCube model is employed. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_dataItem(...) ddi_CubeCoord(...) ddi_physLoc(...)
ddi_dataItem(...) ddi_CubeCoord(...) ddi_physLoc(...)
... |
Child nodes or attributes. |
Parent nodes
dataItem
is contained in locMap
.
dataItem specific child nodes
ddi_CubeCoord()
is an empty element containing only the attributes
listed below. It is used to identify the coordinates of the data item within
a logical nCube describing aggregate data. CubeCoord is repeated for each
dimension of the nCube giving the coordinate number ("coordNo") and coordinate
value ("coordVal"). Coordinate value reference ("cordValRef") is an ID
reference to the variable that carries the coordinate value. The attributes
provide a complete coordinate location of a cell within the nCube.
ddi_physLoc()
is an empty element containing only the attributes listed
below. Attributes include "type" (type of file structure: rectangular,
hierarchical, two-dimensional, relational), "recRef" (IDREF link to the
appropriate file or recGrp element within a file), "startPos" (starting
position of variable or data item), "endPos" (ending position of variable or
data item), "width" (number of columns the variable/data item occupies),
"RecSegNo" (the record segment number, deck or card number the variable or
data item is located on), and "fileid" (an IDREF link to the fileDscr
element for the file that includes this physical location).
A ddi_node object.
ddi_dataItem() # Functions that need to be wrapped in ddi_dataItem() ddi_CubeCoord(coordNo = "1", coordVal = "3") ddi_physLoc(type = "rectangular", recRef = "R1", startPos = "55", endPos = "57", width = "3")
ddi_dataItem() # Functions that need to be wrapped in ddi_dataItem() ddi_CubeCoord(coordNo = "1", coordVal = "3") ddi_physLoc(type = "rectangular", recRef = "R1", startPos = "55", endPos = "57", width = "3")
Used to list the book(s), article(s), serial(s), and/or machine-readable data file(s)–if any–that served as the source(s) of the data collection. More information on this element, especially its allowed attributes, can be found in the references.
ddi_dataSrc(...)
ddi_dataSrc(...)
... |
Child nodes or attributes. |
Parent nodes
dataSrc
is contained in the following elements: sources
and resource
.
A ddi_node object.
ddi_dataSrc('"Voting Scores." CONGRESSIONAL QUARTERLY ALMANAC 33 (1977), 487-498.')
ddi_dataSrc('"Voting Scores." CONGRESSIONAL QUARTERLY ALMANAC 33 (1977), 487-498.')
Used only in the case of a derived variable, this element provides both a description of how the derivation was performed and the command used to generate the derived variable, as well as a specification of the other variables in the study used to generate the derivation. The "var" attribute provides the ID values of the other variables in the study used to generate this derived variable. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_derivation(...) ddi_drvdesc(...) ddi_drvcmd(...)
ddi_derivation(...) ddi_drvdesc(...) ddi_drvcmd(...)
... |
Child nodes or attributes. |
Parent nodes
derivation
is included in var
.
derivation specific child nodes
ddi_drvcmd()
is the actual command used to generate the derived variable.
The "syntax" attribute is used to indicate the command language employed
(e.g., SPSS, SAS, Fortran, etc.). The element may be repeated to support
multiple language expressions of the content.
ddi_drvdesc()
is a textual description of the way in which this variable
was derived. The element may be repeated to support multiple language
expressions of the content.
A ddi_node object.
ddi_derivation() # Functions that need to be wrapped in ddi_derivation() ddi_drvcmd(syntax = "SPSS", "RECODE V1 TO V3 (0=1) (1=0) (2=-1) INTO DEFENSE WELFARE HEALTH.") ddi_drvdesc("VAR215.01 'Outcome of first pregnancy' (1988 NSFG=VAR611 PREGOUT1) If R has never been pregnant (VAR203 PREGNUM EQ 0) then OUTCOM01 is blank/inapplicable. Else, OUTCOM01 is transferred from VAR225 OUTCOME for R's 1st pregnancy.")
ddi_derivation() # Functions that need to be wrapped in ddi_derivation() ddi_drvcmd(syntax = "SPSS", "RECODE V1 TO V3 (0=1) (1=0) (2=-1) INTO DEFENSE WELFARE HEALTH.") ddi_drvdesc("VAR215.01 'Outcome of first pregnancy' (1988 NSFG=VAR611 PREGOUT1) If R has never been pregnant (VAR203 PREGNUM EQ 0) then OUTCOM01 is blank/inapplicable. Else, OUTCOM01 is transferred from VAR225 OUTCOME for R's 1st pregnancy.")
Describe the activity, listing participants with their role and affiliation, resources used (sources of information), and the outcome of the development activity.
ddi_developmentActivity(...) ddi_description(...) ddi_outcome(...) ddi_participant(...)
ddi_developmentActivity(...) ddi_description(...) ddi_outcome(...) ddi_participant(...)
... |
Child nodes or attributes. |
Parent nodes
developmentActivity
is contained in studyDevelopment
.
developmentActivity specific child nodes
ddi_description()
describes the development activity.
ddi_outcome()
describes the outcome of the development activity.
ddi_participant()
lists the participants conducting or designing the
development activity.
A ddi_node object.
developmentActivity documentation
ddi_developmentActivity(type = "checkDataAvailability") # Functions that need to be wrapped in ddi_developmentActivity() ddi_description("A number of potential sources were evaluated for content, consistency and quality") ddi_outcome("Due to quality issues this was determined not to be a viable source of data for the study") ddi_participant(affiliation = "NSO", role = "statistician", "John Doe")
ddi_developmentActivity(type = "checkDataAvailability") # Functions that need to be wrapped in ddi_developmentActivity() ddi_description("A number of potential sources were evaluated for content, consistency and quality") ddi_outcome("Due to quality issues this was determined not to be a viable source of data for the study") ddi_participant(affiliation = "NSO", role = "statistician", "John Doe")
Dimensions of the overall digital or physical file. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_dimensns(...) ddi_caseQnty(...) ddi_logRecL(...) ddi_recDimnsn(...) ddi_recNumTot(...) ddi_recPrCas(...) ddi_varQnty(...)
ddi_dimensns(...) ddi_caseQnty(...) ddi_logRecL(...) ddi_recDimnsn(...) ddi_recNumTot(...) ddi_recPrCas(...) ddi_varQnty(...)
... |
Child nodes or attributes. |
Parent nodes
dimensns
is contained in fileTxt
. recDimensn
is contained in recGrp
.
dimensns and recDimnsn shared nodes
ddi_caseQnty()
is the number of cases, observations, or records.
ddi_logRecL()
is the logical record length, i.e., number of characters of
data in the record.
ddi_varQnty()
is the overall variable count.
dimensns specific nodes
ddi_recNumTot()
is the overall record count in file. Particularly
helpful in instances such as files with multiple cards/decks or records per
case.
ddi_recPrCas()
is the number of records per case in the file. This
element should be used for card-image data or other files in which there
are multiple records per case.
A ddi_node object.
ddi_dimensns() ddi_recDimnsn() # Functions that need to be wrapped in ddi_dimensns() or ddi_recDimnsn() ddi_caseQnty("1011") ddi_logRecL("27") ddi_varQnty("27") # Functions that need to be wrapped in ddi_dimensns ddi_recNumTot("2400") ddi_recPrCas("5")
ddi_dimensns() ddi_recDimnsn() # Functions that need to be wrapped in ddi_dimensns() or ddi_recDimnsn() ddi_caseQnty("1011") ddi_logRecL("27") ddi_varQnty("27") # Functions that need to be wrapped in ddi_dimensns ddi_recNumTot("2400") ddi_recPrCas("5")
Distribution statement for the work at the appropriate level: marked-up document; marked-up document source; study; study description, other material; other material for study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_distStmt(...) ddi_depDate(...) ddi_depositr(...) ddi_distDate(...) ddi_distrbtr(...)
ddi_distStmt(...) ddi_depDate(...) ddi_depositr(...) ddi_distDate(...) ddi_distrbtr(...)
... |
Child nodes or attributes. |
Parent nodes
distStmt
is contained in the following elements: citation
; docSrc
;
fileCitation
; and sourceCitation
.
distStmt specific child nodes
ddi_depDate()
is the date that the work was deposited with the archive that
originally received it. The ISO standard for dates (YYYY-MM-DD) is recommended
for use with the "date" attribute.
ddi_depositr()
is the name of the person (or institution) who provided this
work to the archive storing it.
ddi_distDate()
is the date that the work was made available for
distribution/presentation. The ISO standard for dates (YYYY-MM-DD) is
recommended for use with the "date" attribute. If using a text entry in the
element content, the element may be repeated to support multiple language expressions.
ddi_distrbtr()
is the organization designated by the author or producer to
generate copies of the particular work including any necessary editions or
revisions. Names and addresses may be specified and other archives may be
co-distributors. A URI attribute is included to provide an URN or URL to the
ordering service or download facility on a Web site.
A ddi_node object.
ddi_distStmt() # Functions that need to be wrapped in ddi_distStmt() ddi_depDate(date = "2022-01-01", "January 1, 2022") ddi_depositr(abbr = "BJS", affiliation = "U.S. Department of Justice", "Bureau of Justice Statistics") ddi_distDate(date = "2022-01-01", "January 1, 2022") ddi_distrbtr(abbr = "ICPSR", affiliation = "Institute for Social Research", URI = "http://www.icpsr.umich.edu", "Ann Arbor, MI: Inter-university Consortium for Political and Social Research")
ddi_distStmt() # Functions that need to be wrapped in ddi_distStmt() ddi_depDate(date = "2022-01-01", "January 1, 2022") ddi_depositr(abbr = "BJS", affiliation = "U.S. Department of Justice", "Bureau of Justice Statistics") ddi_distDate(date = "2022-01-01", "January 1, 2022") ddi_distrbtr(abbr = "ICPSR", affiliation = "Institute for Social Research", URI = "http://www.icpsr.umich.edu", "Ann Arbor, MI: Inter-university Consortium for Political and Social Research")
This element defines a variable as a dimension of the nCube, and should be repeated to describe each of the cube's dimensions. The attribute "rank" is used to define the coordinate order (rank="1", rank="2", etc.). The attribute "varRef" is an IDREF that points to the variable that makes up this dimension of the nCube. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_dmns(...)
ddi_dmns(...)
... |
Child nodes or attributes. |
Parent nodes
dmns
is contained in nCube
.
A ddi_node object.
ddi_dmns(rank = "1", varRef = "var01")
ddi_dmns(rank = "1", varRef = "var01")
The Document Description consists of bibliographic information describing the DDI-compliant document itself as a whole. This Document Description can be considered the wrapper or header whose elements uniquely describe the full contents of the compliant DDI file. Since the Document Description section is used to identify the DDI-compliant file within an electronic resource discovery environment, this section should be as complete as possible. The author in the Document Description should be the individual(s) or organization(s) directly responsible for the intellectual content of the DDI version, as distinct from the person(s) or organization(s) responsible for the intellectual content of the earlier paper or electronic edition from which the DDI edition may have been derived. The producer in the Document Description should be the agency or person that prepared the marked-up document. Note that the Document Description section contains a Documentation Source subsection consisting of information about the source of the DDI-compliant file– that is, the hardcopy or electronic codebook that served as the source for the marked-up codebook. These sections allow the creator of the DDI file to produce version, responsibility, and other descriptions relating to both the creation of that DDI file as a separate and reformatted version of source materials (either print or electronic) and the original source materials themselves. More information on this element, especially the allowed attributes, can be found in the references.
ddi_docDscr(...) ddi_docStatus(...) ddi_guide(...)
ddi_docDscr(...) ddi_docStatus(...) ddi_guide(...)
... |
Child nodes or attributes. |
Parent node
docDscr
is contained in codeBook
.
docDscr specific child nodes
ddi_docStatus()
indicates if the documentation is being
presented/distributed before it has been finalized. Some data producers and
social science data archives employ data processing strategies that provide
for release of data and documentation at various stages of processing. The
element may be repeated to support multiple language expressions of the
content.
ddi_guide()
is the list of terms and definitions used in the
documentation. Provided to assist users in using the document correctly.
A ddi_node object.
ddi_docDscr() # Functions that need to be wrapped in ddi_docDscr() ddi_docStatus("This marked-up document includes a provisional data dictionary...") ddi_guide("List of terms and definitions")
ddi_docDscr() # Functions that need to be wrapped in ddi_docDscr() ddi_docStatus("This marked-up document includes a provisional data dictionary...") ddi_guide("List of terms and definitions")
Citation for the source document. This element encodes the bibliographic information describing the source codebook, including title information, statement of responsibility, production and distribution information, series and version information, text of a preferred bibliographic citation, and notes (if any). Information for this section should be taken directly from the source document whenever possible. If additional information is obtained and entered in the elements within this section, the source of this information should be noted in the source attribute of the particular element tag. More information on this element, especially the allowed attributes, can be found in the references.
ddi_docSrc(...)
ddi_docSrc(...)
... |
Child nodes or attributes. |
Parent node
docSrc
is contained in docDscr
.
A ddi_node object.
ddi_docSrc()
ddi_docSrc()
Provides information on variables/nCubes which are not currently available because of policies established by the principal investigators and/or data producers. This element may be repeated to support multiple language expressions of the content.
ddi_embargo(...)
ddi_embargo(...)
... |
Child nodes or attributes. |
Parent nodes
embargo
is contained in nCube
and var
.
A ddi_node object.
ddi_embargo(event = "notBefore", date = "2001-09-30", "The data associated with this variable/nCube will not become available until September 30, 2001, because of embargo provisions established by the data producers.")
ddi_embargo(event = "notBefore", date = "2001-09-30", "The data associated with this variable/nCube will not become available until September 30, 2001, because of embargo provisions established by the data producers.")
Post Evaluation Procedures describes evaluation procedures not addressed in data evaluation processes. These may include issues such as timing of the study, sequencing issues, cost/budget issues, relevance, institutional or legal arrangements etc. of the study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_exPostEvaluation(...) ddi_evaluationProcess(...) ddi_evaluator(...) ddi_outcomes(...)
ddi_exPostEvaluation(...) ddi_evaluationProcess(...) ddi_evaluator(...) ddi_outcomes(...)
... |
Child nodes or attributes. |
Parent nodes
exPostEvaluation
is contained in stdyInfo
.
exPostEvaluation specific child nodes
ddi_evaluationProcess()
describes the evaluation process followed.
ddi_evaluator()
identifies persons or organizations involved in the
evaluation.
ddi_outcomes()
describes the outcomes of the evaluation.
A ddi_node object.
exPostEvaluation documentation
evaluationProcess documentation
ddi_exPostEvaluation() # Functions that need to be wrapped in ddi_exPostEvaluation() ddi_evaluationProcess("This dataset was evaluated using the following methods...") ddi_evaluator(affiliation = "United Nations", abbr = "UNSD", role = "consultant", "United Nations Statistical Division") ddi_outcomes("The following steps were highly effective in increasing response rates, and should be repeated in the next collection cycle...")
ddi_exPostEvaluation() # Functions that need to be wrapped in ddi_exPostEvaluation() ddi_evaluationProcess("This dataset was evaluated using the following methods...") ddi_evaluator(affiliation = "United Nations", abbr = "UNSD", role = "consultant", "United Nations Statistical Division") ddi_outcomes("The following steps were highly effective in increasing response rates, and should be repeated in the next collection cycle...")
Information about the data file(s) that comprises a collection. This section can be repeated for collections with multiple files. More information on this element, especially the allowed attributes, can be found in the references.
ddi_fileDscr(...)
ddi_fileDscr(...)
... |
Child nodes or attributes. |
Parent node
fileDscr
is contained in codeBook
.
A ddi_node object
ddi_fileDscr()
ddi_fileDscr()
Type of file structure. The file structure is fully described in the first
fileTxt
within the fileDscr
and then the fileStrc
in subsequent
fileTxt
descriptions would reference the first fileStrcRef attribute rather
than repeat the details. More information on these elements, especially
their allowed attributes, can be found in the references.
ddi_fileStrc(...)
ddi_fileStrc(...)
... |
Child nodes or attributes. |
Parent node
fileStrc
is contained in fileTxt
.
A ddi_node object.
ddi_fileStrc()
ddi_fileStrc()
Provides descriptive information about the data file. More information on these elements, especially their allowed attributes, can be found in the references.
Parent nodes
ddi_fileTxt(...) ddi_dataChck(...) ddi_dataMsng(...) ddi_fileCont(...) ddi_fileName(...) ddi_filePlac(...) ddi_fileType(...) ddi_format(...) ddi_ProcStat(...)
ddi_fileTxt(...) ddi_dataChck(...) ddi_dataMsng(...) ddi_fileCont(...) ddi_fileName(...) ddi_filePlac(...) ddi_fileType(...) ddi_format(...) ddi_ProcStat(...)
... |
Child nodes or attributes. |
fileTxt
is contained in fileDscr
.
fileTxt specific child nodes
ddi_dataChck()
are the types of checks and operations performed on the
data file at the file level.
ddi_dataMsng()
can be used to give general information about missing
data, e.g., that missing data have been standardized across the collection,
missing data are present because of merging, etc.
ddi_fileCont()
are the file contents. It is the abstract or description
of the file. A summary describing the purpose, nature, and scope of the data
file, special characteristics of its contents, major subject areas covered,
and what questions the PIs attempted to answer when they created the file.
A listing of major variables in the file is important here. In the case of
multi-file collections, this uniquely describes the contents of each file.
ddi_fileName()
contains a short title that will be used to distinguish a
particular file/part from other files/parts in the data collection. The
element may be repeated to support multiple language expressions of the
content.
ddi_filePlac()
indicates where the file was produced, whether at an
archive or elsewhere.
ddi_fileType()
are the types of data files. These include raw data
(ASCII, EBCDIC, etc.) and software-dependent files such as SAS datasets,
SPSS export files, etc. If the data are of mixed types (e.g., ASCII and
packed decimal), state that here.
ddi_format()
is the physical format of the data file: Logical record
length format, card-image format (i.e., data with multiple records per case),
delimited format, free format, etc. The element may be repeated to support
multiple language expressions of the content.
ddi_ProcStat()
is the processing status of the file. Some data producers
and social science data archives employ data processing strategies that
provide for release of data and documentation at various stages of processing.
A ddi_node object.
ddi_fileTxt() # Functions that need to be wrapped in ddi_fileTxt() ddi_dataChck("Consistency checks were performed by Data Producer/ Principal Investigator.") ddi_dataMsng('The codes "-1" and "-2" are used to represent missing data.') ddi_fileCont("Part 1 contains both edited and constructed variables describing demographic...") ddi_fileName(ID = "File1", "Second-Generation Children Data") ddi_filePlac("Washington, DC: United States Department of Commerce, Bureau of the Census") ddi_fileType(charset = "US-ASCII", "ASCII data file") ddi_format("comma-delimited") ddi_ProcStat("Available from the DDA. Being processed.")
ddi_fileTxt() # Functions that need to be wrapped in ddi_fileTxt() ddi_dataChck("Consistency checks were performed by Data Producer/ Principal Investigator.") ddi_dataMsng('The codes "-1" and "-2" are used to represent missing data.') ddi_fileCont("Part 1 contains both edited and constructed variables describing demographic...") ddi_fileName(ID = "File1", "Second-Generation Children Data") ddi_filePlac("Washington, DC: United States Department of Commerce, Bureau of the Census") ddi_fileType(charset = "US-ASCII", "ASCII data file") ddi_format("comma-delimited") ddi_ProcStat("Available from the DDA. Being processed.")
Provides information about the sampling frame unit. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_frameUnit(...) ddi_unitType(...)
ddi_frameUnit(...) ddi_unitType(...)
... |
Child nodes or attributes. |
Parent nodes
frameUnit
is contained in sampleFrame
.
frameUnit specific child nodes
ddi_unitType()
describes the type of sampling frame unit. The attribute
"numberOfUnits" provides the number of units in the sampling frame.
A ddi_node object.
ddi_frameUnit() # Functions that need to be wrapped in ddi_frameUnit() ddi_unitType(numberOfUnits = 150000, "Primary listed owners of published phone numbers in the City of St. Paul")
ddi_frameUnit() # Functions that need to be wrapped in ddi_frameUnit() ddi_unitType(numberOfUnits = 150000, "Primary listed owners of published phone numbers in the City of St. Paul")
The fundamental geometric description for any dataset that models geography. geoBndBox is the minimum box, defined by west and east longitudes and north and south latitudes, that includes the largest geographic extent of the dataset's geographic coverage. This element is used in the first pass of a coordinate-based search. If the boundPoly element is included, then the geoBndBox element MUST be included. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_geoBndBox(...) ddi_eastBL(...) ddi_northBL(...) ddi_southBL(...) ddi_westBL(...)
ddi_geoBndBox(...) ddi_eastBL(...) ddi_northBL(...) ddi_southBL(...) ddi_westBL(...)
... |
Child nodes or attributes. |
Parent nodes
geoBndBox
is contained in sumDscr
.
geoBndBox specific child nodes
ddi_eastBL()
is the easternmost coordinate delimiting the geographic
extent of the dataset. A valid range of values, expressed in decimal degrees
(positive east and positive north), is: -180,0 <= East Bounding Longitude
Value <= 180,0.
ddi_northBL()
is the northernmost coordinate delimiting the geographic
extent of the dataset. A valid range of values, expressed in decimal degrees
(positive east and positive north), is: -90,0 <= North Bounding Latitude
Value <= 90,0 ; North Bounding Latitude Value >= South Bounding Latitude
Value.
ddi_southBL()
is the southernmost coordinate delimiting the geographic
extent of the dataset. A valid range of values, expressed in decimal degrees
(positive east and positive north), is: -90,0 <=South Bounding Latitude
Value <= 90,0 ; South Bounding Latitude Value <= North Bounding Latitude
Value.
ddi_westBL()
is the westernmost coordinate delimiting the geographic
extent of the dataset. A valid range of values, expressed in decimal degrees
(positive east and positive north), is: -180,0 <=West Bounding Longitude
Value <= 180,0.
A ddi_node object.
ddi_geoBndBox() # Functions that need to be wrapped in ddi_geoBndBox() ddi_eastBL("90") ddi_northBL("17") ddi_southBL("45") ddi_westBL("-10")
ddi_geoBndBox() # Functions that need to be wrapped in ddi_geoBndBox() ddi_eastBL("90") ddi_northBL("17") ddi_southBL("45") ddi_westBL("-10")
According to the Statistical Terminology glossary maintained by the National Science Foundation, this is "the process by which one estimates missing values for items that a survey respondent failed to provide," and if applicable in this context, it refers to the type of procedure used. When applied to an nCube, imputation takes into consideration all of the dimensions that are part of that nCube. This element may be repeated to support multiple language expressions of the content. More information on this element, especially its allowed attributes, can be found in the references.
ddi_imputation(...)
ddi_imputation(...)
... |
Child nodes or attributes. |
Parent nodes
imputation
is contained in nCube
and var
.
A ddi_node object.
ddi_imputation("This variable contains values that were derived by substitution.")
ddi_imputation("This variable contains values that were derived by substitution.")
A short description of the parent element. In the variable label, the length of this phrase may depend on the statistical analysis system used (e.g., some versions of SAS permit 40-character labels, while some versions of SPSS permit 120 characters), although the DDI itself imposes no restrictions on the number of characters allowed. More information on this element, especially its allowed attributes, can be found in the references.
ddi_labl(...)
ddi_labl(...)
... |
Child nodes or attributes. |
Parent nodes
labl
is contained in the following elements: catgry
; catgryGrp
; nCube
;
nCubeGrp
; otherMat
; recGrp
; sampleFrame
; var
; and varGrp
.
A ddi_node object.
ddi_labl(level = "variable", lang = "en", "short variable description")
ddi_labl(level = "variable", lang = "en", "short variable description")
The physical or digital location of the variable. It is an empty element. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_location(...)
ddi_location(...)
... |
Child nodes or attributes. |
Parent nodes
location
is contained in nCube
and var
.
A ddi_node object.
ddi_location(StartPos = "55", EndPos = "57", RecSegNo = "2", fileid = "CARD-IMAGE")
ddi_location(StartPos = "55", EndPos = "57", RecSegNo = "2", fileid = "CARD-IMAGE")
This element maps individual data entries to one or more physical storage locations. It is used to describe the physical location of aggregate/tabular data in cases where the nCube model is employed. More information on these elements, especially their allowed attributes, can be found in the references.
Parent nodes
ddi_locMap(...)
ddi_locMap(...)
... |
Child nodes or attributes. |
locMap
is contained in fileDscr
.
A ddi_node object.
ddi_locMap()
ddi_locMap()
This section describes the methodology and processing involved in a data collection. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_method(...) ddi_dataProcessing(...) ddi_stdyClas(...)
ddi_method(...) ddi_dataProcessing(...) ddi_stdyClas(...)
... |
Child nodes or attributes. |
Parent nodes
method
is contained in stdyDscr
.
method specific child nodes
ddi_dataProcessing()
describes various data processing procedures not
captured elsewhere in the documentation, such as topcoding, recoding,
suppression, tabulation, etc. The "type" attribute supports better
classification of this activity, including the optional use of a controlled
vocabulary.
ddi_stdyClas()
is generally used to give the data archive's class or
study status number, which indicates the processing status of the study. May
also be used as a text field to describe processing status. This element may
be repeated to support multiple language expressions of the content.
A ddi_node object.
ddi_method() # Functions that need to be wrapped in ddi_method() ddi_dataProcessing(type = "topcoding", "The income variables in this study (RESP_INC, HHD_INC, and SS_INC) were topcoded to protect confidentiality.") ddi_stdyClas("ICPSR Class II")
ddi_method() # Functions that need to be wrapped in ddi_method() ddi_dataProcessing(type = "topcoding", "The income variables in this study (RESP_INC, HHD_INC, and SS_INC) were topcoded to protect confidentiality.") ddi_stdyClas("ICPSR Class II")
mrow or Mathematical Row is a wrapper containing the presentation expression
mi
. It creates a single string without spaces consisting of the individual
elements described within it. It can be used to create a single variable by
concatenating other variables into a single string. It is used to create
linking variables composed of multiple non-contiguous parts, or to define
unique strings for various category values of a single variable. More
information on these elements, especially their allowed attributes, can be
found in the references.
ddi_mrow(...) ddi_mi(...)
ddi_mrow(...) ddi_mi(...)
... |
Child nodes or attributes. |
Parent nodes
mrow
is contained in catgry
.
mrow specific child nodes
ddi_mi()
is the mathematical identifier. This is the token element
containing the smallest unit in the mrow that carries meaning.
A ddi_node object.
ddi_mrow() # Functions that need to be wrapped in ddi_mrow() ddi_mi("1")
ddi_mrow() # Functions that need to be wrapped in ddi_mrow() ddi_mi("1")
Describes the logical structure of an n-dimensional array, in which each coordinate intersects with every other dimension at a single point. The nCube has been designed for use in the markup of aggregate data. Repetition of the following elements is provided to support multi-language content: anlysUnit, embargo, imputation, purpose, respUnit, and security. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_nCube(...) ddi_measure(...) ddi_purpose(...)
ddi_nCube(...) ddi_measure(...) ddi_purpose(...)
... |
Child nodes or attributes. |
Parent nodes
nCube
is contained in dataDscr
.
nCube specific child nodes
ddi_measure()
indicates the measurement features of the cell content: type of
aggregation used, measurement unit, and measurement scale. An origin point
is recorded for anchored scales, to be used in determining relative movement
along the scale. Additivity indicates whether an aggregate is a stock
(like the population at a given point in time) or a flow (like the number of
births or deaths over a certain period of time). The non-additive flag is to
be used for measures that for logical reasons cannot be aggregated to a
higher level - for instance, data that only make sense at a certain level of
aggregation, like a classification. Two nCubes may be identical except for
their measure - for example, a count of persons by age and percent of
persons by age. Measure is an empty element.
ddi_purpose()
explains the purpose for which a particular nCube was created.
A ddi_node object.
ddi_nCube() # Functions that need to be wrapped in ddi_nCube() ddi_measure(aggrMeth = "sum", additivity = "stock") ddi_purpose("Meets reporting requirements for the Federal Reserve Board")
ddi_nCube() # Functions that need to be wrapped in ddi_nCube() ddi_measure(aggrMeth = "sum", additivity = "stock") ddi_purpose("Meets reporting requirements for the Federal Reserve Board")
A group of nCubes that may share a common subject, arise from the interpretation of a single question, or are linked by some other factor. This element makes it possible to identify all nCubes derived from a simple presentation table, and to provide the original table title and universe, as well as reference the source. Specific nesting patterns can be described using the attribute nCubeGrp. nCube groups are also created this way in order to permit nCubes to belong to multiple groups, including multiple subject groups, without causing overlapping groups. nCubes that are linked by the same use of the same variable need not be identified by an nCubeGrp element because they are already linked by a common variable element. Note that as a result of the strict sequencing required by XML, all nCube Groups must be marked up before the Variable element is opened. That is, the mark-up author cannot mark up a nCube Group, then mark up its constituent nCubes, then mark up another nCube Group. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_nCubeGrp(...)
ddi_nCubeGrp(...)
... |
Child nodes or attributes. |
Parent nodes
nCubeGrp
is contained in dataDscr
.
A ddi_node object.
ddi_nCubeGrp(name = "Group 1")
ddi_nCubeGrp(name = "Group 1")
For clarifying information/annotation regarding the parent element. More information on this element, especially its allowed attributes, can be found in the references.
ddi_notes(...)
ddi_notes(...)
... |
Child nodes or attributes. |
Parent nodes
notes
is contained in the following elements: citation
; dataAccs
;
dataDscr
; docDscr
; docSrc
; fileCitation
; fileDscr
' fileStrc
;
invalrng
; method
; nCube
; nCubeGrp
; otherMat
; setAvail
;
sourceCitation
; stdyDscr
; stdyInfo
; valrng
; var
; varGrp
; and
verStmt
.
A ddi_node object.
ddi_notes(resp = "Jane Smith", "The source codebook was produced from original hardcopy materials using Optical Character Recognition (OCR).")
ddi_notes(resp = "Jane Smith", "The source codebook was produced from original hardcopy materials using Optical Character Recognition (OCR).")
This section allows for the inclusion of other materials that are related to the study as identified and labeled by the DTD/Schema users (encoders). The materials may be entered as PCDATA (ASCII text) directly into the document (through use of the "txt" element). This section may also serve as a "container" for other electronic materials such as setup files by providing a brief description of the study-related materials accompanied by the attributes "type" and "level" defining the material further. Other Study-Related Materials may include: questionnaires, coding notes, SPSS/SAS/Stata setup files (and others), user manuals, continuity guides, sample computer software programs, glossaries of terms, interviewer/project instructions, maps, database schema, data dictionaries, show cards, coding information, interview schedules, missing values information, frequency files, variable maps, etc. More information on this element, especially the allowed attributes, can be found in the references.
ddi_otherMat(...)
ddi_otherMat(...)
... |
Child nodes or attributes. |
Parent nodes
otherMat
is contained in the following elements: codeBook
and otherMat
.
A ddi_node object
ddi_otherMat()
ddi_otherMat()
Other study description materials relating to the study description. This section describes other materials that are related to the study description that are primarily descriptions of the content and use of the study, such as appendices, sampling information, weighting details, methodological and technical details, publications based upon the study content, related studies or collections of studies, etc. This section may point to other materials related to the description of the study through use of the generic citation element, which is available for each element in this section. This maps to Dublin Core Relation element.More information on these elements, especially their allowed attributes, can be found in the references.
ddi_othrStdyMat(...) ddi_othRefs(...) ddi_relMat(...) ddi_relPubl(...) ddi_relStdy(...)
ddi_othrStdyMat(...) ddi_othRefs(...) ddi_relMat(...) ddi_relPubl(...) ddi_relStdy(...)
... |
Child nodes or attributes. |
Parent nodes
othrStdyMat
is contained in stdyDscr
.
othrStdyMat specific child nodes
ddi_othRefs()
indicates other pertinent references. can take the form of
natural language text and/or bibliographic citations using ddi_citation().
ddi_relMat()
describes materials related to the study description, such
as appendices, additional information on sampling found in other documents,
etc. Can take the form of natural language text and/or bibliographic citations
using ddi_citation(). This element can contain either PCDATA or a citation or
both, and there can be multiple occurrences of both the citation and PCDATA
within a single element. May consist of a single URI or a series of URIs
comprising a series of citations/references to external materials which can
be objects as a whole (journal articles) or parts of objects (chapters or
appendices in articles or documents).
ddi_relPubl()
are bibliographic and access information about articles
and reports based on the data in this collection. Can take the form of
natural language text and/or bibliographic citations using ddi_citation().
ddi_relStdy()
is information on the relationship of the current data
collection to others (e.g., predecessors, successors, other waves or rounds)
or to other editions of the same file. This would include the names of
additional data collections generated from the same data collection vehicle
plus other collections directed at the same general topic. Can take the form
of natural language text and/or bibliographic citations using ddi_citation().
A ddi_node object.
ddi_othrStdyMat() # Functions that need to be wrapped in ddi_othrStdyMat() ddi_othRefs("Part II of the documentation, the Field Representative's Manual, is provided in hardcopy form only.") ddi_relMat("Full details on the research design and procedures, sampling methodology, content areas, and questionnaire design, as well as percentage distributions by respondent's sex, race, region, college plans, and drug use, appear in the annual ISR volumes MONITORING THE FUTURE: QUESTIONNAIRE RESPONSES FROM THE NATION'S HIGH SCHOOL SENIORS.") ddi_relPubl("Economic Behavior Program Staff. SURVEYS OF CONSUMER FINANCES. Annual volumes 1960 through 1970. Ann Arbor, MI: Institute for Social Research.") ddi_relStdy("ICPSR distributes a companion study to this collection titled FEMALE LABOR FORCE PARTICIPATION AND MARITAL INSTABILITY, 1980: [UNITED STATES] (ICPSR 9199).")
ddi_othrStdyMat() # Functions that need to be wrapped in ddi_othrStdyMat() ddi_othRefs("Part II of the documentation, the Field Representative's Manual, is provided in hardcopy form only.") ddi_relMat("Full details on the research design and procedures, sampling methodology, content areas, and questionnaire design, as well as percentage distributions by respondent's sex, race, region, college plans, and drug use, appear in the annual ISR volumes MONITORING THE FUTURE: QUESTIONNAIRE RESPONSES FROM THE NATION'S HIGH SCHOOL SENIORS.") ddi_relPubl("Economic Behavior Program Staff. SURVEYS OF CONSUMER FINANCES. Annual volumes 1960 through 1970. Ann Arbor, MI: Institute for Social Research.") ddi_relStdy("ICPSR distributes a companion study to this collection titled FEMALE LABOR FORCE PARTICIPATION AND MARITAL INSTABILITY, 1980: [UNITED STATES] (ICPSR 9199).")
0-dimensional geometric primitive, representing a position, but not having extent. In this declaration, point is limited to a longitude/latitude coordinate system.
ddi_point(...) ddi_gringLat(...) ddi_gringLon(...)
ddi_point(...) ddi_gringLat(...) ddi_gringLon(...)
... |
Child nodes or attributes. |
Parent nodes
point
is contained in polygon
.
point specific child nodes
ddi_gringLat()
is the latitude (y coordinate) of a point. Valid range
expressed in decimal degrees is as follows: -90,0 to 90,0 degrees (latitude).
ddi_gringLon()
is the longitude (x coordinate) of a point. Valid range
expressed in decimal degrees is as follows: -180,0 to 180,0 degrees (longitude).
A ddi_node object.
# ddi_point() which requires ddi_gringLat() and ddi_gringLon() ddi_point(ddi_gringLat("42.002207"), ddi_gringLon("-120.005729004"))
# ddi_point() which requires ddi_gringLat() and ddi_gringLon() ddi_point(ddi_gringLat("42.002207"), ddi_gringLon("-120.005729004"))
The minimum polygon that covers a geographical area, and is delimited by at least 4 points (3 sides), in which the last point coincides with the first point.More information on these elements, especially their allowed attributes, can be found in the references.
ddi_polygon(...)
ddi_polygon(...)
... |
Child nodes or attributes. |
Parent nodes
polygon
is contained in boundPoly
.
A ddi_node object.
# ddi_polygon requires ddi_point() which requires ddi_gringLat() and ddi_gringLon() ddi_polygon(ddi_point( ddi_gringLat("42.002207"), ddi_gringLon("-120.005729004") ) )
# ddi_polygon requires ddi_point() which requires ddi_gringLat() and ddi_gringLon() ddi_polygon(ddi_point( ddi_gringLat("42.002207"), ddi_gringLon("-120.005729004") ) )
Production statement for the work at the appropriate level: marked-up document; marked-up document source; study; study description, other material; other material for study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_prodStmt(...) ddi_copyright(...) ddi_fundAg(...) ddi_grantNo(...) ddi_prodDate(...) ddi_prodPlac(...) ddi_software(...)
ddi_prodStmt(...) ddi_copyright(...) ddi_fundAg(...) ddi_grantNo(...) ddi_prodDate(...) ddi_prodPlac(...) ddi_software(...)
... |
Child nodes or attributes. |
Parent nodes
prodStmt
is contained in the following elements: citation
; docSrc
;
fileCitation
; and sourceCitation
.
prdStmt specific child nodes
ddi_copyright()
is the copyright statement for the work at the appropriate
level. Copyright for data collection (codeBook/stdyDscr/citation/prodStmt/copyright)
maps to Dublin Core Rights. Inclusion of this element is recommended.
ddi_fundAg()
is the source(s) of funds for production of the work. If
different funding agencies sponsored different stages of the production
process, use the "role" attribute to distinguish them.
ddi_grantNo()
is the grant/contract number of the project that sponsored
the effort. If more than one, indicate the appropriate agency using the
"agency" attribute. If different funding agencies sponsored different stages
of the production process, use the "role" attribute to distinguish the grant
numbers.
ddi_prodDate()
is the date when the marked-up document/marked-up document
source/data collection/other material(s) were produced (not distributed or
archived). The ISO standard for dates (YYYY-MM-DD) is recommended for use
with the date attribute. Production date for data collection
(codeBook/stdyDscr/citation/prodStmt/prodDate) maps to Dublin Core Date element.
ddi_prodPlac()
is the address of the archive or organization that produced
the work.
ddi_software()
is the software used to produce the work. A "version"
attribute permits specification of the software version number. The
"date" attribute is provided to enable specification of the date (if any)
for the software release. The ISO standard for dates (YYYY-MM-DD) is
recommended for use with the date attribute.
A ddi_node object.
ddi_prodStmt() # Functions that need to be wrapped in ddi_prodStmt() ddi_copyright("Copyright(c) ICPSR, 2000") ddi_fundAg(abbr = "NSF", role = "infrastructure", "National Science Foundation") ddi_grantNo(agency = "Bureau of Justice Statistics", "J-LEAA-018-77") ddi_prodDate(date = "2022-01-01", "January 1, 2022") ddi_prodPlac("Place of production") ddi_software(version = "6.12", "SAS")
ddi_prodStmt() # Functions that need to be wrapped in ddi_prodStmt() ddi_copyright("Copyright(c) ICPSR, 2000") ddi_fundAg(abbr = "NSF", role = "infrastructure", "National Science Foundation") ddi_grantNo(agency = "Bureau of Justice Statistics", "J-LEAA-018-77") ddi_prodDate(date = "2022-01-01", "January 1, 2022") ddi_prodPlac("Place of production") ddi_software(version = "6.12", "SAS")
The producer is the person or organization with the financial or administrative responsibility for the physical processes whereby the document was brought into existence. Use the "role" attribute to distinguish different stages of involvement in the production process, such as original producer. Producer of data collection (codeBook/stdyDscr/citation/prodStmt/producer) maps to Dublin Core Publisher element. The "producer" in the Document Description should be the agency or person that prepared the marked-up document. More information on this element, especially its allowed attributes, can be found in the references.
ddi_producer(...)
ddi_producer(...)
... |
Child nodes or attributes. |
Parent nodes
producer
is contained in the following elements: prodStmt
and standard
.
A ddi_node object.
ddi_producer(abbr = "MNPoll", affiliation = "Minneapolis Star Tribune Newspaper", role = "origianl producer", "Star Tribune Minnesota Poll")
ddi_producer(abbr = "MNPoll", affiliation = "Minneapolis Star Tribune Newspaper", role = "origianl producer", "Star Tribune Minnesota Poll")
ddi_qstn()
is the question asked. The element may have mixed content. The
element itself may contain text for the question, with the subelements being
used to provide further information about the question. Alternatively, the
question element may be empty and only the subelements used. The element has
a unique question ID attribute which can be used to link a variable with
other variables where the same question has been asked. This would allow
searching for all variables that share the same question ID, perhaps because
the questions was asked several times in a panel design.
ddi_qstn(...) ddi_backward(...) ddi_forward(...) ddi_ivuInstr(...) ddi_postQTxt(...) ddi_preQTxt(...) ddi_qstnLit(...)
ddi_qstn(...) ddi_backward(...) ddi_forward(...) ddi_ivuInstr(...) ddi_postQTxt(...) ddi_preQTxt(...) ddi_qstnLit(...)
... |
Child nodes or attributes. |
#' Parent nodes
qstn
is contained in var
.
qstn specific child nodes
ddi_backward()
contains a reference to IDs of possible preceding questions.
The "qstn" IDREFS may be used to specify the question IDs.
ddi_forward()
contains a reference to IDs of possible following questions.
The "qstn" IDREFS may be used to specify the question IDs.
ddi_ivuInstr()
are specific instructions to the individual conducting an
interview.
ddi_postQTxt()
is the text describing what occurs after the literal question
has been asked.
ddi_preQTxt()
is the pre-question text. This is the text describing a set
of conditions under which a question might be asked.
ddi_qstnLit()
is the text of the actual, literal question asked.
A ddi_node object.
ddi_qstn("When you get together with your friends, would you say you discuss political matters frequently, occasionally, or never", ID = "Q125") # Functions that need to be wrapped in ddi_qstn() # Including ddi_preQTxt within a ddi_qstn with content ddi_qstn("When you get together with your friends, would you say you discuss political matters frequently, occasionally, or never", ID = "Q125", ddi_preQTxt("For those who did not go away on a holiday of four days or more in 1985...")) ddi_qstn(ddi_postQTxt("The next set of questions will ask about your financial situation")) # Using IDREFS in ddi_backward() and ddi_forward() ddi_backward(qstn = "Q143") ddi_forward("If yes, please ask questions 120-124", qstn = "Q120 Q121 Q122 Q123 Q124") # Other child elements ddi_ivuInstr("Please prompt the respondent if they are reticent to answer this question.", lang = "en") ddi_qstnLit("Why didn't you go away in 1985?")
ddi_qstn("When you get together with your friends, would you say you discuss political matters frequently, occasionally, or never", ID = "Q125") # Functions that need to be wrapped in ddi_qstn() # Including ddi_preQTxt within a ddi_qstn with content ddi_qstn("When you get together with your friends, would you say you discuss political matters frequently, occasionally, or never", ID = "Q125", ddi_preQTxt("For those who did not go away on a holiday of four days or more in 1985...")) ddi_qstn(ddi_postQTxt("The next set of questions will ask about your financial situation")) # Using IDREFS in ddi_backward() and ddi_forward() ddi_backward(qstn = "Q143") ddi_forward("If yes, please ask questions 120-124", qstn = "Q120 Q121 Q122 Q123 Q124") # Other child elements ddi_ivuInstr("Please prompt the respondent if they are reticent to answer this question.", lang = "en") ddi_qstnLit("Why didn't you go away in 1985?")
The Quality Statement consists of two parts, standardsCompliance and otherQualityStatement. In standardsCompliance list all specific standards complied with during the execution of this study. Note the standard name and producer and how the study complied with the standard. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_qualityStatement(...) ddi_otherQualityStatement(...)
ddi_qualityStatement(...) ddi_otherQualityStatement(...)
... |
Child nodes or attributes. |
Parent nodes
qualiyStatement
is contained in stdyInfo
.
qualityStatement specific child nodes
ddi_otherQualityStatement()
holds additional quality statements.
A ddi_node object.
qualityStatement documentation
otherQualityStatement documentation
ddi_qualityStatement() # Functions that need to be wrapped in ddi_qualityStatement() ddi_otherQualityStatement("Additional quality statements not addressed in standardsCompliance.")
ddi_qualityStatement() # Functions that need to be wrapped in ddi_qualityStatement() ddi_otherQualityStatement("Additional quality statements not addressed in standardsCompliance.")
This is the actual range of values. The "UNITS" attribute permits the specification of integer/real numbers. The "min" and "max" attributes specify the lowest and highest values that are part of the range. The "minExclusive" and "maxExclusive" attributes specify values that are immediately outside the range. This is an empty element consisting only of its attributes. More information on this element, especially its allowed attributes, can be found in the references.
ddi_range(...)
ddi_range(...)
... |
Child nodes or attributes. |
Parent nodes
range
is contained in the following elements: valrng
; invalrng
; and
cohort
.
A ddi_node object.
ddi_range(min = "1", maxExclusive = "20")
ddi_range(min = "1", maxExclusive = "20")
Used to describe record groupings if the file is hierarchical or relational. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_recGrp(...)
ddi_recGrp(...)
... |
Child nodes or attributes. |
Parent nodes
recGrp
is contained in fileStrc
.
A ddi_node object.
ddi_recGrp()
ddi_recGrp()
Resources used in the development of the activity. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_resource(...)
ddi_resource(...)
... |
Child nodes or attributes. |
Parent nodes
resource
is contained in developmentActivity
.
A ddi_node object.
ddi_resource()
ddi_resource()
Provides information regarding who provided the information contained within the variable/nCube, e.g., respondent, proxy, interviewer. This element may be repeated only to support multiple language expressions of the content. More information on this element, especially its allowed attributes, can be found in the references.
ddi_respUnit(...)
ddi_respUnit(...)
... |
Child nodes or attributes. |
Parent nodes
respUnit
is contained in nCube
and var
.
A ddi_node object.
ddi_respUnit("Head of household")
ddi_respUnit("Head of household")
Each row represents a table row. More information on this element, especially the allowed attributes, can be found in the references.
ddi_row(...) ddi_entry(...)
ddi_row(...) ddi_entry(...)
... |
Child nodes or attributes. |
Parent nodes
row
can be found in tbody
and thead
.
Child node
entry
is each table entry in the row.
A ddi_node object.
ddi_row() # Functions that need to be wrapped in ddi_row() ddi_entry("row contents")
ddi_row() # Functions that need to be wrapped in ddi_row() ddi_entry("row contents")
Responsibility statement for the creation of the work at the appropriate level: marked-up document; marked-up document source; study; study description, other material; other material for study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_rspStmt(...) ddi_AuthEnty(...) ddi_othId(...)
ddi_rspStmt(...) ddi_AuthEnty(...) ddi_othId(...)
... |
Child nodes or attributes. |
Parent nodes
rspStmt
is contained in the following elements: citation
; docSrc
;
fileCitation
; and sourceCitation
.
rspStmt specific child nodes
ddi_AuthEnty()
is the person, corporate body, or agency responsible for the
work's substantive and intellectual content. Repeat the element for each author,
and use "affiliation" attribute if available. Invert first and last name and
use commas. Author of data collection (codeBook/stdyDscr/citation/rspStmt/AuthEnty)
maps to Dublin Core Creator element. Inclusion of this element in codebook is recommended.
The "author" in the Document Description should be the individual(s) or organization(s) directly responsible for the intellectual content of the DDI version, as distinct from the person(s) or organization(s) responsible for the intellectual content of the earlier paper or electronic edition from which the DDI edition may have been derived.
ddi_othId()
are the statements of responsibility not recorded in the title
and statement of responsibility areas. Indicate here the persons or bodies
connected with the work, or significant persons or bodies connected with
previous editions and not already named in the description. For example, the
name of the person who edited the marked-up documentation might be cited in
codeBook/docDscr/rspStmt/othId, using the "role" and "affiliation" attributes.
Other identifications/acknowledgments for data collection
(codeBook/stdyDscr/citation/rspStmt/othId) maps to Dublin Core Contributor element.
A ddi_node object.
ddi_rspStmt() # Functions that need to be wrapped in ddi_rspStmt() ddi_AuthEnty(affiliation = "Organization name", "LastName, FirstName") ddi_othId(role = "Data Manager", affiliation = "Organization name", "LastName, FirstName")
ddi_rspStmt() # Functions that need to be wrapped in ddi_rspStmt() ddi_AuthEnty(affiliation = "Organization name", "LastName, FirstName") ddi_othId(role = "Data Manager", affiliation = "Organization name", "LastName, FirstName")
Sample frame describes the sampling frame used for identifying the population from which the sample was taken. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_sampleFrame(...) ddi_custodian(...) ddi_referencePeriod(...) ddi_sampleFrameName(...) ddi_updateProcedure(...) ddi_validPeriod(...)
ddi_sampleFrame(...) ddi_custodian(...) ddi_referencePeriod(...) ddi_sampleFrameName(...) ddi_updateProcedure(...) ddi_validPeriod(...)
... |
Child nodes or attributes. |
Parent nodes
sampleFrame
is contained in dataColl
.
sampleFrame specific child nodes
ddi_custodian()
identifies the agency or individual who is responsible
for creating or maintaining the sample frame.
ddi_referencePeriod()
indicates the period of time in which the sampling
frame was actually used for the study in question. Use ISO 8601 date/time
formats to enter the relevant date(s).
ddi_sampleFrameName()
is the name of the sample frame.
ddi_updateProcedure()
is the description of how and with what frequency
the sample frame is updated.
ddi_validPeriod()
defines a time period for the validity of the sampling
frame. Enter dates in YYYY-MM-DD format.
A ddi_node object.
ddi_sampleFrame() # Functions that need to be wrapped in ddi_sampleFrame() ddi_custodian("DEX Publications") ddi_referencePeriod(event = "single", "2009-06-01") ddi_sampleFrameName("City of St. Paul Directory") ddi_updateProcedure("Changes are collected as they occur through registration and loss of phone number from the specified geographic area. Data are compiled for the date June 1st of odd numbered years, and published on July 1st for the following two-year period.") ddi_validPeriod(event = "start", "2009-07-01")
ddi_sampleFrame() # Functions that need to be wrapped in ddi_sampleFrame() ddi_custodian("DEX Publications") ddi_referencePeriod(event = "single", "2009-06-01") ddi_sampleFrameName("City of St. Paul Directory") ddi_updateProcedure("Changes are collected as they occur through registration and loss of phone number from the specified geographic area. Data are compiled for the date June 1st of odd numbered years, and published on July 1st for the following two-year period.") ddi_validPeriod(event = "start", "2009-07-01")
Provides information regarding levels of access, e.g., public, subscriber, need to know. The ISO standard for dates (YYYY-MM-DD) is recommended for use with the date attribute. More information on this element, especially its allowed attributes, can be found in the references.
ddi_security(...)
ddi_security(...)
... |
Child nodes or attributes. |
Parent nodes
security
is contained in nCube
and var
.
A ddi_node object.
ddi_security(date = "1998-05-10", "This variable has been recoded for reasons of confidentiality. Users should contact the archive for information on obtaining access.")
ddi_security(date = "1998-05-10", "This variable has been recoded for reasons of confidentiality. Users should contact the archive for information on obtaining access.")
Series statement for the work at the appropriate level: marked-up document; marked-up document source; study; study description, other material; other material for study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_serStmt(...) ddi_serInfo(...) ddi_serName(...)
ddi_serStmt(...) ddi_serInfo(...) ddi_serName(...)
... |
Child nodes or attributes. |
Parent nodes
serStmt
is contained in the following elements: citation
; docSrc
;
fileCitation
; and sourceCitation
.
serStmt specific child nodes
ddi_serInfo()
is the series information. This element contains a history of
the series and a summary of those features that apply to the series as a whole.
ddi_serName()
is the name of the series to which the work belongs.
A ddi_node object.
ddi_serStmt() # Functions that need to be wrapped in ddi_serStmt() ddi_serInfo("Series abstract...") ddi_serName(abbr="SN", "Series Name")
ddi_serStmt() # Functions that need to be wrapped in ddi_serStmt() ddi_serInfo("Series abstract...") ddi_serName(abbr="SN", "Series Name")
Information on availability and storage of the data set collection. More information on this element, especially the allowed attributes, can be found in the references.
ddi_setAvail(...) ddi_accsPlac(...) ddi_avlStatus(...) ddi_collSize(...) ddi_complete(...) ddi_fileQnty(...) ddi_origArch(...)
ddi_setAvail(...) ddi_accsPlac(...) ddi_avlStatus(...) ddi_collSize(...) ddi_complete(...) ddi_fileQnty(...) ddi_origArch(...)
... |
Child nodes or attributes. |
Parent node
setAvail
is contained in dataAccs
.
setAvail specific child nodes
ddi_accsPlac()
is the location where the data collection is currently stored.
Use the URI attribute to provide a URN or URL for the storage site or the
actual address from which the data may be downloaded.
ddi_avlStatus()
is the statement of collection availability. An archive may
need to indicate that a collection is unavailable because it is embargoed
for a period of time, because it has been superseded, because a new edition
is imminent, etc.
ddi_collSize()
summarizes the number of physical files that exist in a
collection, recording the number of files that contain data and noting
whether the collection contains machine-readable documentation and/or other
supplementary files and information such as data dictionaries, data
definition statements, or data collection instruments.
ddi_complete()
is the completeness of study stored. This item indicates the
relationship of the data collected to the amount of data coded and stored
in the data collection. Information as to why certain items of collected
information were not included in the data file stored by the archive should
be provided.
ddi_fileQnty()
is the total number of physical files associated with a
collection.
ddi_origArch()
is the archive from which the data collection was obtained;
the originating archive.
A ddi_node object.
ddi_setAvail() # Functions that need to be wrapped in ddi_setAvail() ddi_accsPlac(URI = "https://dataverse.harvard.edu/", "Harvard Dataverse") ddi_avlStatus("This collection is superseded by CENSUS OF POPULATION, 1880...") ddi_collSize("1 data file + machine-readable documentation (PDF) + SAS data definition statements.") ddi_complete("Because of embargo provisions, data values for some variables have been masked...") ddi_fileQnty("5 files") ddi_origArch("Zentralarchiv fuer empirische Sozialforschung")
ddi_setAvail() # Functions that need to be wrapped in ddi_setAvail() ddi_accsPlac(URI = "https://dataverse.harvard.edu/", "Harvard Dataverse") ddi_avlStatus("This collection is superseded by CENSUS OF POPULATION, 1880...") ddi_collSize("1 data file + machine-readable documentation (PDF) + SAS data definition statements.") ddi_complete("Because of embargo provisions, data values for some variables have been masked...") ddi_fileQnty("5 files") ddi_origArch("Zentralarchiv fuer empirische Sozialforschung")
Description of sources used for the data collection. The element is nestable so that the sources statement might encompass a series of discrete source statements, each of which could contain the facts about an individual source. This element maps to Dublin Core Source element. More information on this element, especially its allowed attributes, can be found in the references.
ddi_sources(...)
ddi_sources(...)
... |
Child nodes or attributes. |
Parent nodes
sources
is contained in the following elements: dataColl
and sources
.
A ddi_node object.
ddi_sources()
ddi_sources()
Assessment of characteristics and quality of source material. May not be relevant to survey data. This element may be repeated to support multiple language expressions of the content. More information on this element, especially its allowed attributes, can be found in the references.
ddi_srcChar(...)
ddi_srcChar(...)
... |
Child nodes or attributes. |
Parent nodes
srcChar
is contained in the following elements: sources
and resource
.
A ddi_node object.
ddi_srcChar("Assessment of source material(s).")
ddi_srcChar("Assessment of source material(s).")
Level of documentation of the original sources. May not be relevant to survey data. This element may be repeated to support multiple language expressions of the content. More information on this element, especially its allowed attributes, can be found in the references.
ddi_srcDocu(...)
ddi_srcDocu(...)
... |
Child nodes or attributes. |
Parent nodes
srcDocu
is contained in the following elements: sources
and resource
.
A ddi_node object.
ddi_srcDocu("Description of documentation of source material(s).")
ddi_srcDocu("Description of documentation of source material(s).")
For historical materials, information about the origin(s) of the sources and the rules followed in establishing the sources should be specified. May not be relevant to survey data. This element may be repeated to support multiple language expressions of the content.More information on this element, especially its allowed attributes, can be found in the references.
ddi_srcOrig(...)
ddi_srcOrig(...)
... |
Child nodes or attributes. |
Parent nodes
srcOrig
is contained in the following elements: sources
and resource
.
A ddi_node object.
ddi_srcOrig("Origin of source material(s).")
ddi_srcOrig("Origin of source material(s).")
Standard describes a standard with which the study complies. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_standard(...) ddi_standardName(...)
ddi_standard(...) ddi_standardName(...)
... |
Child nodes or attributes. |
Parent nodes
standard
is contained in standardsCompliance
.
standard specific child nodes
ddi_standardName()
contains the name of the standard with which the
study complies.
A ddi_node object.
ddi_standard() # Functions that need to be wrapped in ddi_standard() ddi_standardName(date = "2009-10-18", version = "3.1", URI = "http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/", "Data Documentation Initiative")
ddi_standard() # Functions that need to be wrapped in ddi_standard() ddi_standardName(date = "2009-10-18", version = "3.1", URI = "http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/", "Data Documentation Initiative")
The standards compliance section lists all specific standards complied with during the execution of this study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_standardsCompliance(...) ddi_complianceDescription(...)
ddi_standardsCompliance(...) ddi_complianceDescription(...)
... |
Child nodes or attributes. |
Parent nodes
standardsCompliance
is contained in qualityStatement
.
standardsCompliance specific child nodes
ddi_complianceDescription
describes how the study complied with each
standard.
A ddi_node object.
standardsCompliance documentation
complianceDescription documentation
# Note: ddi_standard() is a required child for ddi_standardsCompliance() ddi_standardsCompliance(ddi_standard()) # Functions that need to be wrapped in ddi_standardsCompliance() ddi_complianceDescription("This study complied to X standard by...")
# Note: ddi_standard() is a required child for ddi_standardsCompliance() ddi_standardsCompliance(ddi_standard()) # Functions that need to be wrapped in ddi_standardsCompliance() ddi_complianceDescription("This study complied to X standard by...")
All DDI codebooks must have a study description which contains information about the study overall. The Study Description consists of information about the data collection, study, or compilation that the DDI-compliant documentation file describes. This section includes information about how the study should be cited, who collected or compiled the data, who distributes the data, keywords about the content of the data, summary (abstract) of the content of the data, data collection methods and processing, etc. At least one citation must be present, capturing the whole study. More information on this element, especially the allowed attributes, can be found in the references.
ddi_stdyDscr(...)
ddi_stdyDscr(...)
... |
Child nodes or attributes. |
Parent node
stdyDscr
is contained in codeBook
.
A ddi_node object
# ddi_citation() is required in ddi_stdyDscr() ddi_stdyDscr(ddi_citation())
# ddi_citation() is required in ddi_stdyDscr() ddi_stdyDscr(ddi_citation())
stdyInfo is the study scope. It contains information about the data collection's scope across several dimensions, including substantive content, geography, and time. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_stdyInfo(...) ddi_abstract(...) ddi_studyBudget(...)
ddi_stdyInfo(...) ddi_abstract(...) ddi_studyBudget(...)
... |
Child nodes or attributes. |
Parent nodes
stdyInfo
is contained in stdyDscr
.
stdyInfo specific child nodes
ddi_abstract()
is an unformatted summary describing the purpose, nature,
and scope of the data collection, special characteristics of its contents,
major subject areas covered, and what questions the PIs attempted to answer
when they conducted the study. A listing of major variables in the study is
important here. In cases where a codebook contains more than one abstract
(for example, one might be supplied by the data producer and another
prepared by the data archive where the data are deposited), the "source"
and "date" attributes may be used to distinguish the abstract versions. Maps
to Dublin Core Description element. Inclusion of this element in the
codebook is recommended. The "date" attribute should follow ISO convention
of YYYY-MM-DD.
ddi_studyBudget()
is used to describe the budget of the project in as
much detail as needed.
A ddi_node object.
ddi_stdyInfo() # Functions that need to be wrapped in ddi_stdyInfo() ddi_abstract(date = "1999-01-28", contentType = "abstract", "Data on labor force activity for the week prior to the survey are supplied in this collection. Information is available on the employment status, occupation, and industry of persons 15 years old and over. Demographic variables such as age, sex, race, marital status, veteran status, household relationship, educational background, and Hispanic origin are included. In addition to providing these core data, the May survey also contains a supplement on work schedules for all applicable persons aged 15 years and older who were employed at the time of the survey. This supplement focuses on shift work, flexible hours, and work at home for both main and second jobs.") ddi_studyBudget("The budget for the study covers a 5 year award period distributed between direct and indirect costs including: Staff, ...")
ddi_stdyInfo() # Functions that need to be wrapped in ddi_stdyInfo() ddi_abstract(date = "1999-01-28", contentType = "abstract", "Data on labor force activity for the week prior to the survey are supplied in this collection. Information is available on the employment status, occupation, and industry of persons 15 years old and over. Demographic variables such as age, sex, race, marital status, veteran status, household relationship, educational background, and Hispanic origin are included. In addition to providing these core data, the May survey also contains a supplement on work schedules for all applicable persons aged 15 years and older who were employed at the time of the survey. This supplement focuses on shift work, flexible hours, and work at home for both main and second jobs.") ddi_studyBudget("The budget for the study covers a 5 year award period distributed between direct and indirect costs including: Staff, ...")
Study Authorization provides structured information on the agency that authorized the study, the date of authorization, and an authorization statement. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_studyAuthorization(...) ddi_authorizationStatement(...) ddi_authorizingAgency(...)
ddi_studyAuthorization(...) ddi_authorizationStatement(...) ddi_authorizingAgency(...)
... |
Child nodes or attributes. |
Parent nodes
studyAuthorization
is contained in stdyDscr
.
studyAuthorization specific child nodes
ddi_authorizationStatement()
is the text of the authorization.
ddi_authorizingAgency()
is the name of the agent or agency that
authorized the study.
A ddi_node object.
studyAuthorization documentation
authorizationStatement documentation
authorizingAgency documentation
ddi_studyAuthorization() # Functions that have to be wrapped in ddi_studyAuthorization() ddi_authorizationStatement("Required documentation covering the study purpose, disclosure information, questionnaire content, and consent statements was delivered to the OUHS on 2010-10-01 and was reviewed by the compliance officer. Statement of authorization for the described study was issued on 2010-11-04.") ddi_authorizingAgency(affiliation = "Purdue University", abbr = "OUHS", "Office for Use of Human Subjects")
ddi_studyAuthorization() # Functions that have to be wrapped in ddi_studyAuthorization() ddi_authorizationStatement("Required documentation covering the study purpose, disclosure information, questionnaire content, and consent statements was delivered to the OUHS on 2010-10-01 and was reviewed by the compliance officer. Statement of authorization for the described study was issued on 2010-11-04.") ddi_authorizingAgency(affiliation = "Purdue University", abbr = "OUHS", "Office for Use of Human Subjects")
Describe the process of study development as a series of development activities. These activities can be typed using a controlled vocabulary. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_studyDevelopment(...)
ddi_studyDevelopment(...)
... |
Child nodes or attributes. |
Parent nodes
studyDevelopment
is contained in stdyDscr
.
A ddi_node object.
studyDevelopment documentation
ddi_studyDevelopment()
ddi_studyDevelopment()
Subject describes the data collection's intellectual content. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_subject(...) ddi_keyword(...) ddi_topcClas(...)
ddi_subject(...) ddi_keyword(...) ddi_topcClas(...)
... |
Child nodes or attributes. |
Parent nodes
subject
is contained in stdyInfo
.
subject specific child nodes
ddi_keyword()
are words or phrases that describe salient aspects of a
data collection's content. Can be used for building keyword indexes and for
classification and retrieval purposes. A controlled vocabulary can be
employed. Maps to Dublin Core Subject element.
ddi_topcClas()
indicates the broad substantive topic(s) that the data
cover. Library of Congress subject terms may be used here. Maps to Dublin
Core Subject element. Inclusion of this element in the codebook is
recommended.
A ddi_node object.
ddi_subject() # Functions that need to be wrapped in ddi_subject() ddi_keyword(vocab = "ICPSR Subject Thesaurus", vocabURI = "http://www.icpsr.umich.edu/thesaurus/subject.html", "quality of life") ddi_topcClas(vocab = "LOC Subject Headings", vocabURI = "http://www.loc.gov/catdir/cpso/lcco/lcco.html", "Public opinion -- California -- Statistics")
ddi_subject() # Functions that need to be wrapped in ddi_subject() ddi_keyword(vocab = "ICPSR Subject Thesaurus", vocabURI = "http://www.icpsr.umich.edu/thesaurus/subject.html", "quality of life") ddi_topcClas(vocab = "LOC Subject Headings", vocabURI = "http://www.loc.gov/catdir/cpso/lcco/lcco.html", "Public opinion -- California -- Statistics")
This is the summary data description and it contains information about the geographic coverage of the study and unit of analysis. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_sumDscr(...) ddi_anlyUnit(...) ddi_collDate(...) ddi_dataKind(...) ddi_geogCover(...) ddi_geogUnit(...) ddi_nation(...) ddi_timePrd(...)
ddi_sumDscr(...) ddi_anlyUnit(...) ddi_collDate(...) ddi_dataKind(...) ddi_geogCover(...) ddi_geogUnit(...) ddi_nation(...) ddi_timePrd(...)
... |
Child nodes or attributes. |
Parent nodes
sumDscr
is contained in stdyInfo
.
sumDscr specific child nodes
ddi_anlyUnit()
is the basic unit of analysis or observation that the file
describes: individuals, families/households, groups,
institutions/organizations, administrative units, etc.
ddi_collDate()
contains the date(s) when the data were collected. Maps to
Dublin Core Coverage element. Inclusion of this element in the codebook is
recommended.
ddi_dataKind()
is the type of data included in the file: survey data,
census/enumeration data, aggregate data, clinical data, event/transaction
data, program source code, machine-readable text, administrative records
data, experimental data, psychological test, textual data, coded textual,
coded documents, time budget diaries, observation data/ratings,
process-produced data, etc. This element maps to Dublin Core Type element.
ddi_geogCover()
is information on the geographic coverage of the data.
Includes the total geographic scope of the data, and any additional levels
of geographic coding provided in the variables. Maps to Dublin Core Coverage
element.
ddi_geogUnit()
is the lowest level of geographic aggregation covered by
the data.
ddi_nation()
indicates the country or countries covered in the file.
Attribute "abbr" may be used to list common abbreviations; use of ISO country
codes is recommended. Maps to Dublin Core Coverage element. Inclusion of
this element is recommended.
ddi_timePrd()
is the time period to which the data refer. This item
reflects the time period covered by the data, not the dates of coding or
making documents machine-readable or the dates the data were collected. Also
known as span. Maps to Dublin Core Coverage element. Inclusion of this
element is recommended.
A ddi_node object.
ddi_sumDscr() # Functions that need to be wrapped in ddi_sumDscr() ddi_anlyUnit("individuals") ddi_collDate(event = "single", date = "1998-11-10", "10 November 1998") ddi_dataKind(type = "numeric", "survey data") ddi_geogCover("State of California") ddi_geogUnit("state") ddi_nation(abbr = "GB", "United Kingdom") ddi_timePrd(event = "start", date = "1998-05-01", "May 1, 1998")
ddi_sumDscr() # Functions that need to be wrapped in ddi_sumDscr() ddi_anlyUnit("individuals") ddi_collDate(event = "single", date = "1998-11-10", "10 November 1998") ddi_dataKind(type = "numeric", "survey data") ddi_geogCover("State of California") ddi_geogUnit("state") ddi_nation(abbr = "GB", "United Kingdom") ddi_timePrd(event = "start", date = "1998-05-01", "May 1, 1998")
Used to create a table in DDI 2.5. More information on this element, especially the allowed attributes, can be found in the references.
ddi_table(...)
ddi_table(...)
... |
Child nodes or attributes. |
Parent nodes
table
is contained in the following elements: key
; notes
; otherMat
;
and txt
.
A ddi_node object.
ddi_table()
ddi_table()
Provides both the target size of the sample (this is the number in the original sample, not the number of respondents) as well as the formula used for determining the sample size. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_targetSampleSize(...) ddi_sampleSize(...) ddi_sampleSizeFormula(...)
ddi_targetSampleSize(...) ddi_sampleSize(...) ddi_sampleSizeFormula(...)
... |
Child nodes or attributes. |
Parent nodes
targetSampleSize
is contained in dataColl
.
targetSampleSize specific child nodes
ddi_sampleSize()
provides the targeted sample size in integer format.
ddi_sampleSizeFormula()
includes the formula that was used to determine
the sample size.
A ddi_node object.
targetSampleSize documentation
sampleSizeFormula documentation
ddi_targetSampleSize() # Functions that need to be wrapped in ddi_targetSampleSize() ddi_sampleSize(385) ddi_sampleSizeFormula("n0=Z2pq/e2=(1.96)2(.5)(.5)/(.05)2=385 individuals")
ddi_targetSampleSize() # Functions that need to be wrapped in ddi_targetSampleSize() ddi_sampleSize(385) ddi_sampleSizeFormula("n0=Z2pq/e2=(1.96)2(.5)(.5)/(.05)2=385 individuals")
This is the body of the table. More information on this element, especially the allowed attributes, can be found in the references.
ddi_tbody(...)
ddi_tbody(...)
... |
Child nodes or attributes. |
Parent nodes
tbody
is contained in tgroup
.
A ddi_node object.
ddi_tbody(valign = "middle")
ddi_tbody(valign = "middle")
This is the table group. More information on this element, especially the allowed attributes, can be found in the references.
ddi_tgroup(...) ddi_colspec(...)
ddi_tgroup(...) ddi_colspec(...)
... |
Child nodes or attributes. |
Parent nodes
tgroup
is contained in table
.
tgroup specific child node
ddi_colspec()
is the column specification for each column. It is an
empty element.
A ddi_node object.
ddi_tgroup() # Functions that must be wrapped in ddi_tgroup() ddi_colspec(align = "left")
ddi_tgroup() # Functions that must be wrapped in ddi_tgroup() ddi_colspec(align = "left")
This is the table header. More information on this element, especially the allowed attributes, can be found in the references.
ddi_thead(...)
ddi_thead(...)
... |
Child nodes or attributes. |
Parent nodes
thead
is contained in tgroup
.
A ddi_node object.
ddi_thead(valign = "middle")
ddi_thead(valign = "middle")
titl is the full authoritative title for the work at the appropriate level: marked-up document; marked-up document source; study; other material(s) related to study description; other material(s) related to study. The study title will in most cases be identical to the title for the marked-up document. 'A full title should indicate the geographic scope of the data collection as well as the time period covered. Title of data collection '(codeBook/stdyDscr/citation/titlStmt/titl) maps to Dublin Core Title element. This element is required in the Study Description citation. More information on this element, especially its allowed attributes, can be found in the references.
ddi_titl(...)
ddi_titl(...)
... |
Child nodes or attributes. |
Parent nodes
titl
is contained in the following elements: table
and titlStmt
.
A ddi_node object.
ddi_titl("Census of Population, 1950 [United States]: Public Use Microdata Sample")
ddi_titl("Census of Population, 1950 [United States]: Public Use Microdata Sample")
Title statement for the work at the appropriate level: marked-up document;
marked-up document source; study; study description, other materials; other
materials for the study. Both titlStmt
and titl
are required elements in the citation
branch of a DDI-Codebook. More information on these elements, especially
their allowed attributes, can be found in the references.
ddi_titlStmt(...) ddi_altTitl(...) ddi_IDNo(...) ddi_parTitl(...) ddi_subTitl(...)
ddi_titlStmt(...) ddi_altTitl(...) ddi_IDNo(...) ddi_parTitl(...) ddi_subTitl(...)
... |
Child nodes or attributes. |
Parent nodes
titlStmt
is contained in the following elements: citation
; docSrc
;
fileCitation
; and sourceCitation
.
titlStmt specific child nodes
ddi_altTitl()
is the alternative title. A title by which the work is commonly referred, or an
abbreviation of the title.
ddi_IDNo()
is the identification number. This is a unique string or number (producer's or
archive's number). Can be a DOI. An "agency" attribute is supplied. Identification Number
of data collection maps to Dublin Core Identifier element.
ddi_parTitl()
is the parallel title. Title translated into another language.
ddi_subTitl()
is the subtitle. A secondary title used to amplify or state certain limitations
on the main title. It may repeat information already in the main title.
A ddi_node object.
ddi_titlStmt() # Functions that need to be wrapped in ddi_titlStmt() ddi_altTitl("Alternative Title of work") ddi_IDNo(agency = "agency name", "ID number") ddi_parTitl(lang = "fr", "French translation of the title") ddi_subTitl("Subtitle of work")
ddi_titlStmt() # Functions that need to be wrapped in ddi_titlStmt() ddi_altTitl("Alternative Title of work") ddi_IDNo(agency = "agency name", "ID number") ddi_parTitl(lang = "fr", "French translation of the title") ddi_subTitl("Subtitle of work")
Lengthier description of the parent element. More information on this element, especially its allowed attributes, can be found in the references.
ddi_txt(...)
ddi_txt(...)
... |
Child nodes or attributes. |
Parent nodes
txt
is contained in the following elements: anlyUnit
; anlysUnit
;
catgry
; catgryGrp
; codingInstructions
; collMode
; dataKind
;
frameUnit
; geogCover
; geogUnit
; nCube
; nCubeGrp
; nation
;
otherMat
; resInstru
; sampProc
; sampleFrame
; srcOrig
; timeMeth
;
universe
; var
; and varGrp
.
A ddi_node object.
ddi_txt("The following five variables refer to respondent attitudes toward national environmental policies: air pollution, urban sprawl, noise abatement, carbon dioxide emissions, and nuclear waste.")
ddi_txt("The following five variables refer to respondent attitudes toward national environmental policies: air pollution, urban sprawl, noise abatement, carbon dioxide emissions, and nuclear waste.")
The group of persons or other elements that are the object of research and to which any analytic results refer. Age, nationality, and residence commonly help to delineate a given universe, but any of a number of factors may be involved, such as sex, race, income, veteran status, criminal convictions, etc. The universe may consist of elements other than persons, such as housing units, court cases, deaths, countries, etc. In general, it should be possible to tell from the description of the universe whether a given individual or element (hypothetical or real) is a member of the population under study. More information on this element, especially its allowed attributes, can be found in the references.
ddi_universe(...)
ddi_universe(...)
... |
Child nodes or attributes. |
Parent nodes
universe
is contained in the following elements: nCube
; nCubeGrp
;
sampleFrame
; sumDscr
; var
; and varGrp
.
A ddi_node object.
ddi_universe(clusion = "I", "Individuals 15-19 years of age.")
ddi_universe(clusion = "I", "Individuals 15-19 years of age.")
Defines where in the instance the controlled vocabulary which is identified is utilized. A controlled vocabulary may occur either in the content of an element or in an attribute on an element. The usage can either point to a collection of elements using an XPath via the selector element or point to a more specific collection of elements via their identifier using the specificElements element. If the controlled vocabulary occurs in an attribute within the element, the attribute element identifies the specific attribute. When specific elements are specified, an authorized code value may also be provided. If the current value of the element or attribute identified is not in the controlled vocabulary or is not identical to a code value, the authorized code value identifies a valid code value corresponding to the meaning of the content in the element or attribute. More information on this element, especially the allowed attributes, can be found in the references.
ddi_usage(...) ddi_attribute(...) ddi_selector(...) ddi_specificElements(...)
ddi_usage(...) ddi_attribute(...) ddi_selector(...) ddi_specificElements(...)
... |
Child nodes or attributes. |
Parent nodes
usage
is contained in controlledVocabUsed
.
usage specific child nodes
ddi_attribute()
identifies an attribute within the element(s) identified
by the selector or specificElements in which the controlled vocabulary is
used. The fully qualified name used here must correspond to that in the
instance, which is to say that if the attribute is namespace qualified, the
prefix used here must match that which is defined in the instance.
ddi_selector()
identifies a collection of elements in which a controlled
vocabulary is used. This is a simplified XPath which must correspond to the
actual instance in which it occurs, which is to say that the fully qualified
element names here must correspond to those in the instance. This XPath can
only identify elements and does not allow for any predicates. The XPath must
either be rooted or deep.
ddi_specificElements()
identifies a collection of specific elements via
their identifiers in the refs attribute, which allows for a tokenized list
of identifier values which must correspond to identifiers which exist in the
instance. The authorizedCodeValue attribute can be used to provide a valid
code value corresponding to the meaning of the content in the element or
attribute when the identified element or attribute does not use an actual
valid value from the controlled vocabulary.
A ddi_node object.
specificElements documentation
ddi_usage(ddi_selector("/codeBook/stdyDscr/method/dataColl/timeMeth")) ddi_usage(ddi_selector("/codeBook/stdyDscr/method/dataProcessing"), ddi_attribute("type")) ddi_usage(ddi_specificElements(refs = "ICPSR4328timeMeth", authorizedCodeValue = "CrossSection"))
ddi_usage(ddi_selector("/codeBook/stdyDscr/method/dataColl/timeMeth")) ddi_usage(ddi_selector("/codeBook/stdyDscr/method/dataProcessing"), ddi_attribute("type")) ddi_usage(ddi_specificElements(refs = "ICPSR4328timeMeth", authorizedCodeValue = "CrossSection"))
Information on terms of use for the data collection. This element may be repeated only to support multiple language expressions of the content. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_useStmt(...) ddi_citReq(...) ddi_conditions(...) ddi_confDec(...) ddi_deposReq(...) ddi_disclaimer(...) ddi_restrctn(...) ddi_specPerm(...)
ddi_useStmt(...) ddi_citReq(...) ddi_conditions(...) ddi_confDec(...) ddi_deposReq(...) ddi_disclaimer(...) ddi_restrctn(...) ddi_specPerm(...)
... |
Child nodes or attributes. |
Parent nodes
useStmt
is contained in the following elements: dataAccs
and sampleFrame
.
useStmt specific child nodes
ddi_citReq()
is the citation requirement. This is the text of requirement that
a data collection should be cited properly in articles or other publications
that are based on analysis of the data.
ddi_conditions()
indicates any additional information that will assist the
user in understanding the access and use conditions of the data collection.
ddi_confDec()
is the confidentiality declaration. This element is used to
determine if signing of a confidentiality declaration is needed to access a
resource.
ddi_deposReq()
is the deposit requirement. This is information regarding
user responsibility for informing archives of their use of data through
providing citations to the published work or providing copies of the
manuscripts.
ddi_disclaimer()
is information regarding responsibility for uses of the
data collection. This element may be repeated to support multiple language
expressions of the content.
ddi_restrctn()
are any restrictions on access to or use of the collection
such as privacy certification or distribution restrictions should be
indicated here. These can be restrictions applied by the author, producer,
or disseminator of the data collection. If the data are restricted to only
a certain class of user, specify which type.
ddi_specPerm()
is used to determine if any special permissions are required
to access a resource.
A ddi_node object.
ddi_useStmt() # Functions that need to be wrapped in ddi_useStmt() ddi_citReq(lang = "en", "Publications based on ICPSR data collections should acknowledge those sources by means of bibliographic citations. To ensure that such source attributions are captured for social science bibliographic utilities, citations must appear in footnotes or in the reference section of publications.") ddi_conditions(lang = "en", "The data are available without restriction. Potential users of these datasets are advised, however, to contact the original principal investigator Dr. J. Smith (Institute for Social Research, The University of Michigan, Box 1248, Ann Arbor, MI 48106), about their intended uses of the data. Dr. Smith would also appreciate receiving copies of reports based on the datasets.") ddi_confDec(formNo = "1", "To download this dataset, the user must sign a declaration of confidentiality.") ddi_deposReq("To provide funding agencies with essential information about use of archival resources and to facilitate the exchange of information about ICPSR participants' research activities, users of ICPSR data are requested to send to ICPSR bibliographic citations for, or copies of, each completed manuscript or thesis abstract. Please indicate in a cover letter which data were used.") ddi_disclaimer("The original collector of the data, ICPSR, and the relevant funding agency bear no responsibility for uses of this collection or for interpretations or inferences based upon such uses.") ddi_restrctn("ICPSR obtained these data from the World Bank under the terms of a contract which states that the data are for the sole use of ICPSR and may not be sold or provided to third parties outside of ICPSR membership. Individuals at institutions that are not members of the ICPSR may obtain these data directly from the World Bank.") ddi_specPerm(formNo = "4", "The user must apply for special permission to use this dataset locally and must complete a confidentiality form.")
ddi_useStmt() # Functions that need to be wrapped in ddi_useStmt() ddi_citReq(lang = "en", "Publications based on ICPSR data collections should acknowledge those sources by means of bibliographic citations. To ensure that such source attributions are captured for social science bibliographic utilities, citations must appear in footnotes or in the reference section of publications.") ddi_conditions(lang = "en", "The data are available without restriction. Potential users of these datasets are advised, however, to contact the original principal investigator Dr. J. Smith (Institute for Social Research, The University of Michigan, Box 1248, Ann Arbor, MI 48106), about their intended uses of the data. Dr. Smith would also appreciate receiving copies of reports based on the datasets.") ddi_confDec(formNo = "1", "To download this dataset, the user must sign a declaration of confidentiality.") ddi_deposReq("To provide funding agencies with essential information about use of archival resources and to facilitate the exchange of information about ICPSR participants' research activities, users of ICPSR data are requested to send to ICPSR bibliographic citations for, or copies of, each completed manuscript or thesis abstract. Please indicate in a cover letter which data were used.") ddi_disclaimer("The original collector of the data, ICPSR, and the relevant funding agency bear no responsibility for uses of this collection or for interpretations or inferences based upon such uses.") ddi_restrctn("ICPSR obtained these data from the World Bank under the terms of a contract which states that the data are for the sole use of ICPSR and may not be sold or provided to third parties outside of ICPSR membership. Individuals at institutions that are not members of the ICPSR may obtain these data directly from the World Bank.") ddi_specPerm(formNo = "4", "The user must apply for special permission to use this dataset locally and must complete a confidentiality form.")
Values for a particular variable that represent legitimate responses (valrng) or illegitimate response (invalrng). Must include item or range as a child element.
ddi_valrng(...) ddi_invalrng(...) ddi_item(...) ddi_key(...)
ddi_valrng(...) ddi_invalrng(...) ddi_item(...) ddi_key(...)
... |
Child nodes or attributes. |
Parent nodes
valrng
and invalrng
are contained in var
.
valrng and invalrng specific child nodes
ddi_item()
is the counterpart to range; used to encode individual values.
This is an empty element consisting only of its attributes. The "UNITS"
attribute permits the specification of integer/real numbers. The "VALUE"
attribute specifies the actual value.
ddi_key()
is the range key. This element permits a listing of the category
values and labels. While this information is coded separately in the Category
element, there may be some value in having this information in proximity to
the range of valid and invalid values. A table is permissible in this element.
A ddi_node object.
# ddi_valrng() and ddi_invalrng() requires either the ddi_item() or ddi_range() child node. ddi_valrng(ddi_item()) ddi_invalrng(ddi_item()) ddi_valrng(ddi_range()) ddi_invalrng(ddi_range()) # Functions that must be wrapped in ddi_valrng() or ddi_invalrng() ddi_item(VALUE = "1") ddi_key("05 (PSU) Parti Socialiste Unifie et extreme gauche (Lutte Ouvriere) [United Socialists and extreme left (Workers Struggle)] 50 Les Verts [Green Party] 80 (FN) Front National et extreme droite [National Front and extreme right]")
# ddi_valrng() and ddi_invalrng() requires either the ddi_item() or ddi_range() child node. ddi_valrng(ddi_item()) ddi_invalrng(ddi_item()) ddi_valrng(ddi_range()) ddi_invalrng(ddi_range()) # Functions that must be wrapped in ddi_valrng() or ddi_invalrng() ddi_item(VALUE = "1") ddi_key("05 (PSU) Parti Socialiste Unifie et extreme gauche (Lutte Ouvriere) [United Socialists and extreme left (Workers Struggle)] 50 Les Verts [Green Party] 80 (FN) Front National et extreme droite [National Front and extreme right]")
This element describes all of the features of a single variable in a social science data file. The following elements are repeatable to support multi-language content: anlysUnit, embargo, imputation, respUnit, security, TotlResp. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_var(varname, ...) ddi_catLevel(...) ddi_codInstr(...) ddi_geomap(...) ddi_stdCatgry(...) ddi_sumStat(...) ddi_TotlResp(...) ddi_undocCod(...) ddi_varFormat(...)
ddi_var(varname, ...) ddi_catLevel(...) ddi_codInstr(...) ddi_geomap(...) ddi_stdCatgry(...) ddi_sumStat(...) ddi_TotlResp(...) ddi_undocCod(...) ddi_varFormat(...)
varname |
The variable name. |
... |
Child nodes or attributes. |
Parent nodes
var
is contained in dataDscr
.
var specific child nodes
ddi_catLevel()
is used to describe the levels of the category hierarchy.
ddi_codInstr()
are coder instructions. These are any special instructions
to those who converted information from one form to another for a particular
variable. This might include the reordering of numeric information into
another form or the conversion of textual information into numeric information.
ddi_geomap()
is a geographic map. This element is used to point, using a
"URI" attribute, to an external map that displays the geography in question.
ddi_stdCatgry()
are standard category codes used in the variable, like
industry codes, employment codes, or social class codes.
ddi_sumStat()
is one or more statistical measures that describe the
responses to a particular variable and may include one or more standard
summaries, e.g., minimum and maximum values, median, mode, etc.
ddi_TotlResp()
are the number of responses to this variable. This element
might be used if the number of responses does not match added case counts.
It may also be used to sum the frequencies for variable categories.
ddi_undocCod()
is the list of undocumented codes where the meaning of the
values are unknown.
ddi_varFormat()
is the technical format of the variable in question.
A ddi_node object.
ddi_var(varname = "var01") # Functions that need to be wrapped in ddi_var() ddi_catLevel(ID = "Level1", levelnm = "Broader sectors") ddi_codInstr("Use the standard classification tables to present responses to the question: What is your occupation? into numeric codes.") ddi_geomap(URI = "https://mapURL.com") ddi_stdCatgry(date = "1981", "U. S. Census of Population and Housing, Classified Index of Industries and Occupations") ddi_sumStat(type = "min", "0") ddi_TotlResp("1,056") ddi_undocCod("Responses for categories 9 and 10 are unavailable.") ddi_varFormat(type = "numeric", formatname = "date.iso8601", schema = "XML-Data", category = "date", URI = "http://www.w3.org/TR/1998/NOTE-XML-data/", "19541022")
ddi_var(varname = "var01") # Functions that need to be wrapped in ddi_var() ddi_catLevel(ID = "Level1", levelnm = "Broader sectors") ddi_codInstr("Use the standard classification tables to present responses to the question: What is your occupation? into numeric codes.") ddi_geomap(URI = "https://mapURL.com") ddi_stdCatgry(date = "1981", "U. S. Census of Population and Housing, Classified Index of Industries and Occupations") ddi_sumStat(type = "min", "0") ddi_TotlResp("1,056") ddi_undocCod("Responses for categories 9 and 10 are unavailable.") ddi_varFormat(type = "numeric", formatname = "date.iso8601", schema = "XML-Data", category = "date", URI = "http://www.w3.org/TR/1998/NOTE-XML-data/", "19541022")
A group of variables that may share a common subject, arise from the interpretation of a single question, or are linked by some other factor. Variable groups are created this way in order to permit variables to belong to multiple groups, including multiple subject groups such as a group of variables on sex and income, or to a subject and a multiple response group, without causing overlapping groups. Variables that are linked by use of the same question need not be identified by a Variable Group element because they are linked by a common unique question identifier in the Variable element. Note that as a result of the strict sequencing required by XML, all Variable Groups must be marked up before the Variable element is opened. That is, the mark-up author cannot mark up a Variable Group, then mark up its constituent variables, then mark up another Variable Group. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_varGrp(...) ddi_defntn(...)
ddi_varGrp(...) ddi_defntn(...)
... |
Child nodes or attributes. |
Parent nodes
varGrp
is contained in dataDscr
.
varGrp specific child nodes
ddi_defntn()
is the rationale for why the variable group was constituted.
A ddi_node object.
ddi_varGrp() # Functions that need to be wrapped in ddi_varGrp() ddi_defntn("The following eight variables were only asked in Ghana.")
ddi_varGrp() # Functions that need to be wrapped in ddi_varGrp() ddi_defntn("The following eight variables were only asked in Ghana.")
This is the version statement for the work at the appropriate level: marked-up document; marked-up document source; study; study description, other material; other material for study. More information on these elements, especially their allowed attributes, can be found in the references.
ddi_verStmt(...) ddi_verResp(...) ddi_version(...)
ddi_verStmt(...) ddi_verResp(...) ddi_version(...)
... |
Child nodes or attributes. |
Parent nodes
verStmt
is contained in the following elements: citation
; docSrc
;
fileCitation
; fileTxt
; nCube
; sourceCitation
; and var
.
verStmt specific child nodes
ddi_verResp()
is the organization or person responsible for the version of the
work.
ddi_version()
is also known as release or edition. If there have been
substantive changes in the data/documentation since their creation, this
statement should be used at the appropriate level. The ISO standard for
dates (YYYY-MM-DD) is recommended for use with the "date" attribute.
A ddi_node object.
ddi_verStmt() # Functions that need to be wrapped in ddi_verStmt() ddi_verResp("Zentralarchiv fuer Empirische Sozialforschung") ddi_version(type = "edition", date = "1999-01-25", "Second ICPSR Edition")
ddi_verStmt() # Functions that need to be wrapped in ddi_verStmt() ddi_verResp("Zentralarchiv fuer Empirische Sozialforschung") ddi_version(type = "edition", date = "1999-01-25", "Second ICPSR Edition")
Validates your constructed codebook against the
DDI Codebook 2.5 schema. While all built-in ddi_
functions
are written with the schema in mind, this is useful
if you create your own DDI nodes (there are many and
it will take a while to implement all of them).
validate_codebook(codebook)
validate_codebook(codebook)
codebook |
The codebook root node, output of |
A logical (with attributes containing any errors) that indicates passing or failing.
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample"))))) validate_codebook(cb)
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample"))))) validate_codebook(cb)