Displaying 2 results from an estimated 2 matches for "wfreq".
Did you mean:
ifreq
2010 Nov 06
1
Hashing and environments
...uickly. But I've never really understood very well how hashing works, so I'm having trouble.
Here is an example of what I've done so far:
***
setClass("Lexicon",representation(e="environment"))
setMethod("initialize","Lexicon",function(.Object,wfreqs) {
.Object at e <- new.env(hash=T,parent=emptyenv())
assign("wfreqs",wfreqs,envir=.Object at e)
return(.Object)
})
## function to access word frequencies
wfreq <- function(lexicon,word) {
return(get("wfreqs",envir=lexicon at e)[word])
}
## example of use
my.lexicon...
2007 Dec 28
1
logistic mixed effects models with lmer
...print(m17, corr=F)
...
Fixed effects:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -1.97887 0.19699 -10.045 < 2e-16 ***
sexM 0.45553 0.14387 3.166 0.001544 **
...
is_discTRUE 0.24676 0.15204 1.623 0.104576
poly(wfreq, 2)1 -119.72397 11.00516 -10.879 < 2e-16 ***
poly(wfreq, 2)2 17.35646 5.44456 3.188 0.001433 **
poly(wlen_p, 2)1 -13.60798 7.26926 -1.872 0.061208 .
poly(wlen_p, 2)2 -6.43167 5.24119 -1.227 0.219770
...
where poly(wlen_p,2)2 is the least significant factor...