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

Maya Brennan mayab at Princeton.EDU
Mon Oct 9 14:29:26 EDT 2006


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
****************************************



More information about the DDI-users mailing list