I'm trying to use the regexpr function to locate the decimal in a character
string. Regardless of the position of the decimal, the function returns 1.
For example,
regexpr(., Female.Alabama)
[1] 1
attr(,match.length)
[1] 1
In trying to figure out what was going on here, I tried the below
For svymean, can't you just pass the subpopulation into the design argument?
svymean(~crc10yr, design=nhis.design[nhis.design$variables$age=50,],
na.rm=TRUE)
crc10yr
0.3461349
attr(,var)
[,1]
[1,] 2.903020e-05
svyglm(crc10yr~I(age=50)+0, design=nhis.design)
Stratified 1 - level
PROTECTED]]
Sent: Wednesday, February 12, 2003 8:49 PM
To: Thompson, Trevor
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Various Errors using Survey Package
On Wed, 12 Feb 2003, Thompson, Trevor wrote:
Hi,
I have been experimenting with the new Survey package. Specifically, I
was
trying to use some
Hi,
I have been experimenting with the new Survey package. Specifically, I was
trying to use some of the functions on the public-use survey data from NHIS
(2000 Sample Adult file).
Error 1): The first error I get is when I try to specify the complex survey
design.