Displaying 4 results from an estimated 4 matches for "cpct".
Did you mean:
cpc
2007 Dec 06
5
Help rewriting looping structure?
...Is there a way to rewrite it so I don't have to loop through each individual
record?
##### tdat is my data frame
##### j is my field index
##### k is my record index
##### tsum is the sum of all values in field j
##### tmp is a vector containing the values in field j
##### tdat[k,paste("cpct,j,sep="")] creates new fields "cpct1",...,"cpct5"
for(j in 1:5) {
tsum<- sum(tdat[,j]);
for(k in 1:nrow(tdat)) {
td<- tdat[k,j];
tmp<-tdat[,j];
##### sum values <= to current value and divide by the total sum
tdat[k,paste("cpct,j,sep...
2015 Jan 16
1
S3 generic method dispatch on promises
...g the same work over and over, will extract
## a middle chunk out of each of those methods. And finally my cool print
method.
print.pctable <- function(tab, colpct = TRUE, rowpct = FALSE){
count <- tab[["count"]]
t3 <- count
if (colpct && !rowpct) {
cpct <- tab[["colpct"]]
for(j in rownames(cpct)){
for(k in colnames(cpct)){
t3[j, k] <- paste0(count[j, k], "(", cpct[j, k], "%)")
}
}
cat("Count (column %)\n")
print(t3)
return(...
2008 Oct 26
0
LMER quasibinomial
...-3.041
capacity 1.1219 0.1176 9.542
group2 0.9086 1.7905 0.507
group3 2.3700 1.7936 1.321
capacity:group2 -0.1745 0.1610 -1.083
capacity:group3 -0.3807 0.1622 -2.348
Correlation of Fixed Effects:
(Intr) capcty group2 group3 cpct:2
capacity -0.322
group2 -0.709 0.228
group3 -0.708 0.228 0.502
capcty:grp2 0.235 -0.730 -0.310 -0.167
capcty:grp3 0.233 -0.725 -0.166 -0.305 0.529
---------
Results 2
---------
Generalized linear mixed mode...
2008 Jul 07
1
GLM, LMER, GEE interpretation
...-3.041
capacity 1.1219 0.1176 9.542
group2 0.9086 1.7905 0.507
group3 2.3700 1.7936 1.321
capacity:group2 -0.1745 0.1610 -1.083
capacity:group3 -0.3807 0.1622 -2.348
Correlation of Fixed Effects:
(Intr) capcty group2 group3 cpct:2
capacity -0.322
group2 -0.709 0.228
group3 -0.708 0.228 0.502
capcty:grp2 0.235 -0.730 -0.310 -0.167
capcty:grp3 0.233 -0.725 -0.166 -0.305 0.529
-----
GEE
-----
GEE: GENERALIZED LINEAR MODELS FOR D...