[DDI-users] RE: DDI-users Digest, Vol 26, Issue 1

Wendy Thomas wlt at pop.umn.edu
Tue Oct 10 03:14:45 EDT 2006


One correction. In order to reference either the varGrp or the var you 
must declare the ID for the item. The attributes var and varGrp are both 
declared as IDRefs which means your xml will not validate unless you are 
referencing IDs contained in the xml document. The attribute name is 
provided for use by spss, sas and other statistical programs.

Also, a comment Steve's later comment about the long list of var ID's 
in this element. I don't know about the XPaths, but if you are using 
varGrp or nCubeGrp to create large groups of var's or nCube's, we wrote a 
quick little perl script which grabbed all the ID's of (in our case) 
nCube's and then we just chopped the list up and did a cut and paste into 
the attribute. Just a processing comment for what it's worth.

Wendy

On Mon, 9 Oct 2006, Maya Brennan wrote:

> Steve,
>
> varGrp will work by listing all of the variables in the var attribute as a
> string of their variable names separated by spaces.  Here is an example of
> the varGrp element as used at CPANDA:
>
> <varGrp name="VG02" type="subject" var="A1CURFOR CURRENT FORMER A2GENDER
> A3AGEGP A4CBIRTH A5AETHN1 A5AETHN2 AMERIND ASIAN BLACK HISPANIC HAWAIIPI
> WHITE OTHER A6QUALS1 A6QUALS2 A6QUALS3 A6QUALS4 NOFORMAL DCDANCSC DCPERFSC
> BACHDEGR ADDCDNCS ADDCPERF GRADUATE FQOTHER A7GENED A8ABEGTR A8BFENGA
> A8CBGPCR A8DFINC">
>      <labl>Demographics</labl>
> </varGrp>
>
> That variable group displayed on CPANDA follows:
> http://www.cpanda.org/codebookDB/vars.jsp?id=a00213&name=VG02&offset=0
>
> If it'd be helpful to see the full DDI XML document, let me know & I can
> e-mail you a copy.
>
> -Maya
>
> ---------------------
> Maya Brennan
> Data Services Coordinator
> Cultural Policy & the Arts National Data Archive
> Princeton University
> mayab at princeton.edu
>
>
>
> -----Original Message-----
> From: ddi-users-bounces at icpsr.umich.edu
> [mailto:ddi-users-bounces at icpsr.umich.edu] On Behalf Of
> ddi-users-request at icpsr.umich.edu
> Sent: Monday, October 09, 2006 12:03 PM
> To: ddi-users at icpsr.umich.edu
> Subject: DDI-users Digest, Vol 26, Issue 1
>
> Send DDI-users mailing list submissions to
> 	ddi-users at icpsr.umich.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.icpsr.umich.edu/mailman/listinfo/ddi-users
> or, via email, send a message with subject or body 'help' to
> 	ddi-users-request at icpsr.umich.edu
>
> You can reach the person managing the list at
> 	ddi-users-owner at icpsr.umich.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of DDI-users digest..."
>
>
> Today's Topics:
>
>   1. varGrp/var relationships (Steve McRoberts)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 09 Oct 2006 10:51:06 -0500
> From: Steve McRoberts <steve.mcroberts at doit.wisc.edu>
> Subject: [DDI-users] varGrp/var relationships
> To: ddi-users at icpsr.umich.edu
> Message-ID: <B71ECA20-2A56-465C-99F9-8ED58F339282 at doit.wisc.edu>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Can anyone provide an example of varGrp/var relationships usage? I
> have 25 groups of 10-50 var elements per group. It seems natural to
> me to specify the groups in varGrp then reference the varGrp id in
> the var. Apparently this was original intent but later changed when
> reading from the following documentation excerpts.
>
> "<!--vargrp attribute on var element removed as redundant;
> use var attribute on vargrp element to
> encode vargrp to var relationships -->"
>
> "<varGrp><notes>This variable group was created for the purpose of
>  combining all derived variables.</notes></varGrp>"
>
> But how does one reference all the var id's in the varGrp? There's
> only a single attribute of var.
>
> Steve McRoberts
> Institute on Aging
> University of Wisconsin - Madison
> 608-265-6757
>
>
> ------------------------------
>
> _______________________________________________
> DDI-users mailing list
> DDI-users at icpsr.umich.edu
> http://www.icpsr.umich.edu/mailman/listinfo/ddi-users
>
>
> End of DDI-users Digest, Vol 26, Issue 1
> ****************************************
>
> _______________________________________________
> DDI-users mailing list
> DDI-users at icpsr.umich.edu
> http://www.icpsr.umich.edu/mailman/listinfo/ddi-users
>

Wendy L. Thomas                          Phone: +1 612.624.4389
Data Access Core Director		 Fax:   +1 612.626.8375
Minnesota Population Center              Email: wlt at pop.umn.edu
University of Minnesota
50 Willey Hall
225 19th Avenue South
Minneapolis, MN 55455


More information about the DDI-users mailing list