LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2011)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 6 Mar 2011 06:58:52 -0800
Reply-To:     drfg2008 <kontakt@datest.de>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         drfg2008 <kontakt@datest.de>
Subject:      Re: different values in a row
In-Reply-To:  <1299421174190-3411438.post@n5.nabble.com>
Content-Type: text/plain; charset=us-ascii

I tried your syntax, but couldn't get it running :

*---------------- first build a file ----------------.

input program. loop a =1 to 100 by 1. end case. end loop. end file. end input program. exe.

comp v1 =RV.BINOM(5,0.5). comp v2 =RV.BINOM(5,0.5). comp v3 =RV.BINOM(5,0.5). comp v4 =RV.BINOM(5,0.5).

EXECUTE .

*-----------your syntax with exe.------------------------.

numeric i1 to i4 (f1.0). /* 4 indicator variables. recode i1 to i4 (else=0). /* initialize to 0. vector v = v1 to v4 / i = i1 to i4. loop # = 1 to 4. - compute i(v(#)) = 1. /* value stored in v(#) flagged as present. end loop. EXECUTE . compute unique_values = sum(i1 to i4).

------ this is an excerpt of the error messages :

>Warnung Nr. 525 >An attempt was made to store a value into an element of a vector the subscript >of which was missing or otherwise invalid. The subscript must be a positive >integer and must not be greater than the length of the vector. No store can >occur. >Command line: 207 Current case: 6 Current splitfile group: 1

----- FUB

-- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/different-values-in-a-row-tp3411280p3411468.html Sent from the SPSSX Discussion mailing list archive at Nabble.com.

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


Back to: Top of message | Previous page | Main SPSSX-L page