[R] Regexpr with .

2003-08-14 Thread Thompson, Trevor
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

RE: [R] Subpopulations in Complex Surveys

2003-02-24 Thread Thompson, Trevor
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

RE: [R] Various Errors using Survey Package

2003-02-13 Thread Thompson, Trevor
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

[R] Various Errors using Survey Package

2003-02-12 Thread Thompson, Trevor
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.