[R] Merge rows

2014-07-11 Thread Ryan de Vera
Hello all, I have a data frame filled with senders and recipients. Some of the senders have multiple rows with different recipients and I want to merge those rows. For example I have a...@email.com b...@email.com a...@email.com c...@email.com d...@email.com r...@email.com

[R] What is SE and how do you calculate it in svymean()?

2014-06-06 Thread Ryan de Vera
Hello all, I have been experimenting with svymean() and I am confused on what the output is. The data I have looks like: *PSU* * STRATUM* *WEIGHTS* * COUNTS* *1* 1 1 2.0 1 *2* 2 1 1.0 1 *3* 3 1 1.0 1 *4* 3 1 2.5 1 *5* 2 1 1.0 1

[R] Understanding survey design (svydesign)

2014-06-05 Thread Ryan de Vera
Hi all, I am trying to understand the output of the svydesign function. My question is, is there documentation on how the probabilities are computer? Or could someone please explain to me how they are? I have this d-svydesign(id=~PSU, strata=~STRATUM,weights=~w, data=s, nest=TRUE) And this

[R] Understanding svymean

2014-06-05 Thread Ryan de Vera
Hello all, I am trying to understand how svymean is calulated with svydesign. I have the code: dstrat1-svydesign(id=~PSU, strata=~STRATUM,weights=~Sample_Weight, data=subset25k, nest=TRUE) and I am using svymean to compute the mean. My main question is how are the sampling probabilities