[R] svymean using the survey package - strata containing no subpopulation members

2016-06-22 Thread Muhuri, Pradip (AHRQ/CFACT)
Hi, Below is a reproducible example that produces the estimate of "totexp13" (total health care expenditure 2013) for the subpopulation that includes "Asians with diabetes diagnosed" in MEPS. The R script below downloads file from the web for processing. Issue/Question: The R/survey package

[R] svykappa using the survey package

2016-06-20 Thread Muhuri, Pradip (AHRQ/CFACT)
length as the vector [8] # Pradip K. Muhuri, AHRQ/CFACT 5600 Fishers Lane # 7N142A, Rockville, MD 20857 Tel: 301-427-1564 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Muhuri, Pradip

Re: [R] dplyr's arrange function - 3 solutions received - 1 New Question

2016-06-16 Thread Muhuri, Pradip (AHRQ/CFACT)
, Rockville, MD 20857 Tel: 301-427-1564 -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Thursday, June 16, 2016 12:54 PM To: Muhuri, Pradip (AHRQ/CFACT) Cc: r-help@r-project.org Subject: Re: [R] dplyr's arrange function - 3 solutions received - 1 New

Re: [R] dplyr's arrange function - 3 solutions received - 1 New Question

2016-06-16 Thread Muhuri, Pradip (AHRQ/CFACT)
ot; "87.5 (3.27)" ... $ kappa : chr "0.536 (0.029)" "0.676 (0.032)" "0.905 (0.011)" "0.626 (0.035)" ... Pradip K. Muhuri, AHRQ/CFACT 5600 Fishers Lane # 7N142A, Rockville, MD 20857 Tel: 301-427-1564 -Original Message- Fr

[R] dplyr's arrange function

2016-06-15 Thread Muhuri, Pradip (AHRQ/CFACT)
Hello, I am using the dplyr's arrange() function to sort one of the many data frames on a character variable (named "prevalence"). Issue: I am not getting the desired output (line 7 is the problem, which should be the very last line in the sorted data frame) because the sorted field is