s-news
[Top] [All Lists]

Survey design in S+8

To: s-news@lists.biostat.wustl.edu
Subject: Survey design in S+8
From: "Walter R. Paczkowski" <dataanalytics@earthlink.net>
Date: Tue, 05 Jun 2007 20:26:38 -0400
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=cFOoN93IoE7lsE+5tXGRwrwvgwYBd1ifO2OpNgkf/bHXD1iM+hVPNSgxAQuW34iD; h=Received:X-Mailer:Date:To:From:Subject:Mime-Version:Content-Type:Message-ID:X-ELNK-Trace:X-Originating-IP;
Hi,

I just loaded my new copy of 8.0 on Windows XP.  I wanted to run a small function I had written in R using the survey package to do a raking of survey data.  The function works perfectly under R.  In S, however, I get an error message:

        Problem: Length of 1 (variable 1) is 1 != length of others (3560)
        Use traceback() to see the call stack

Does anyone know what this means?  This is for an SRS, nothing fancy.  The problem is with the svydesign function which I specify as

         svydesign(ids = ~1, data = "">
where x is a dataframe with dimension 3560 by 3.  Again, this worked perfectly in R.  Any insight?

Thanks,

Walt Paczkowski

_________________________________

Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ  08536
(V) 609-936-8999
(F) 609-936-3733

<Prev in Thread] Current Thread [Next in Thread>