Re: [R] Applying glm coefficients (Beginner Question)

2012-09-20 Thread SirRon
Thanks for the reply! Using predict() on new data works just fine. What I'm interested in is, if I can use the coefficients or other data, to develop my own formula which does the same as predict(). -- View this message in context: http://r.789695.n4.nabble.com/Applying-glm-coefficients-Beginne

[R] Applying glm coefficients (Beginner Question)

2012-09-20 Thread SirRon
Hello, I am working with a dataset with three variables and one binomial parameter. The glm function provides coefficients for these three variables, e.g. -1.5 | 27.2 | -2.9 If I'm not mistaken, $fitted.values gives me an estimate of how likely my parameter is to be true/1 . I would like to apply

[R] Count based on 2 conditions [Beginner Question]

2012-09-16 Thread SirRon
Hello, I'm working with a dataset that has 2 columns and 1000 entries. Column 1 has either value 0 or 1, column 2 has values between 0 and 10. I would like to count how often Column 1 has the value 1, while Column 2 has a value greater 5. This is my attempt, which works but doesn't seem to be very