[R] fixing the dispersion parameter in glm

Remko Duursma remkoduursma at gmail.com
Wed Sep 29 01:47:30 CEST 2010



How about:

y[y[,2] %in% x.samp[,2],]

gives you the subset of y where values in the second column are restricted
to your sample from x.

You can then sample from this matrix, if you need to...


greetings,
Remko
-- 
View this message in context: http://r.789695.n4.nabble.com/drawing-samples-based-on-a-matching-variable-tp2718009p2718128.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list