Displaying 3 results from an estimated 3 matches for "locc".
Did you mean:
loc
2009 Mar 07
2
Recode factor into binary factor-level vars
How to I "recode" a factor into a binary data frame according to the
factor levels:
### example:start
set.seed(20)
l <- sample(rep.int(c("locA", "locB", "locC", "locD"), 100), 10,
replace=T)
# [1] "locD" "locD" "locD" "locD" "locB" "locA" "locA" "locA" "locD"
"locA"
### example:end
What I want in the end is the following:
m$locA: 0, 0,...
2009 Mar 06
4
Summary grouped by factor
### example:start
v <- sample(rnorm(200), 100, replace=T)
k <- rep.int(c("locA", "locB", "locC", "locD"), 25)
tapply(v, k, summary)
### example:end
... (hopefully) produces 4 summaries of v according to k group
membership. How can I transform the output into a nice table with the
croups as columns and the interesting statistics as lines?
Thx, S?ren
2011 Aug 15
1
Get significant codes from a model output fit with GEE package
...output I got is the following:
GEE: GENERALIZED LINEAR MODELS FOR DEPENDENT DATA
gee S-function, version 4.13 modified 98/01/27 (1998)
Model:
Link: Logit
Variance to Mean Relation: Binomial
Correlation Structure: Exchangeable
Call:
gee(formula = bru ~ +grac + locc + dekc, id = flo, data = all,
family = binomial(link = "logit"), corstr = "exchangeable")
Summary of Residuals:
Min 1Q Median 3Q Max
-0.41935925 -0.15355800 -0.09403907 -0.03244056 0.98117731
Coefficients:...