Displaying 2 results from an estimated 2 matches for "genderf".
Did you mean:
gender
2009 Oct 10
1
many weighted means: is there a simpler way?
Hi R-users,
I would like to calculate weighted mean of several
variables by two factors where the weight vector is
the same for all variables.
Below, there is a simple example where I have only two
variables: "v1","v2" both weighted by "wt" and my factors
are "gender" and "year".
set.seed(1)
df <- data.frame(gender = rep(c("M",
2008 Apr 10
1
Degrees of freedom in binomial glm
...oc, family = binomial,
data = satdata, weights = Freq)
Deviance Residuals:
Min 1Q Median 3Q Max
-19.456 -6.839 0.000 6.309 17.635
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.334265 0.056491 5.917 3.28e-09 ***
genderF -0.180480 0.047575 -3.794 0.000149 ***
age35-44 0.122422 0.051836 2.362 0.018191 *
age>44 0.361610 0.051576 7.011 2.36e-12 ***
raceOther -0.005883 0.061605 -0.095 0.923919
locMidAtl 0.437342 0.103821 4.212 2.53e-05 ***
locS 0.178574 0.073033...