search for: smry

Displaying 9 results from an estimated 9 matches for "smry".

Did you mean: smr
2006 Sep 25
2
paste? 'cmd /c "c:\\pheno\\whap --file c:\\pheno\\smri --alt 1"'
Dear R users, This command works (calling a programm -called whap- with file specifiers etc.): >system('cmd /c "c:\\pheno\\whap --file c:\\pheno\\smri --alt 1 --perm 500"', intern=TRUE) Now I need to call it from a loop to replace the "1" by different number, however I get lost using the quotes: I tried numerous versions of: >i<-1
2008 Apr 02
2
restrictions for attribute access <Watchdog: Virus checked>
...ink it might be due to namespace access restrictions or something similar, but I'm unable to figure it out, maybe someone knows the trick how to do it ... I'm trying to extract some information from the summary object for a model fitted using the lmer function from the lme4 package: smry <- summary(lmer(foo ~ bar ...)) tab <- attr(smry, "AICtab") tab$AIC When I run this code as a regular R script everything works fine, tab$AIC has the desired value. But when I try to run this code from within a package I wrote, tab$AIC is NULL. I've tried adding "im...
2016 Aug 19
2
summary.default rounding on numeric seems inconsistent with other R behaviors
It is the old story of defined behaviour and expected outcomes. Hard to change now. So I would suggest you do something like this in your ~/.Rprofile: R> smry <- function(...) summary(..., digits=6) R> smry(155555L) Min. 1st Qu. Median Mean 3rd Qu. Max. 155555 155555 155555 155555 155555 155555 R> Maybe call it Summary() instead. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
2008 Oct 09
1
YALAQ - Yet Another LApply Question
...od as command1 version2 above not work with the summary() command as does the second (preferred) set of commands? # command2 version1 lapply(ls(pattern='bn'), function(y) { cat(y, "\n") ; summary(get(y)) ; cat("\n") } ) # command2 version2 (preferred output) smry.list <- lapply(ls(pattern='bn'), function(y) summary(get(y))) names(smry.list) <- ls(pattern='bn') smry.list Thanx, DaveT. ### # system info: > sessionInfo() ; cat("\n") ; Sys.info()[c(1:3,5)] R version 2.7.2 (2008-08-25) i386-pc-mingw32 locale: LC_COLL...
2013 Oct 17
1
pamer.fnc y la nueva versión de R
...pred = "LengthBc", intr = list("FreqBdc", levels(eeg$FreqBdc), "beg", list(1 : 3, 1 : 3))) } # effect of Length at each FreqB bin summary(object = m2.ph, term = "LengthBc") # Length effect different Freq bins? Start with low # versus mid and high smry <- summary(object = m2.ph, term = "FreqBdclow:LengthBc") # mid versus low and high smry <- summary(object = m2.ph, term = "FreqBdcmid:LengthBc") } ## End(Not run) #--------------------------------------------------------------------------------------------------------...
2016 Aug 23
0
summary.default rounding on numeric seems inconsistent with other R behaviors
...;>>>> on Fri, 19 Aug 2016 11:40:05 -0500 writes: > It is the old story of defined behaviour and expected outcomes. Hard to > change now. yes... not impossible though... see below > So I would suggest you do something like this in your ~/.Rprofile: R> smry <- function(...) summary(..., digits=6) R> smry(155555L) > Min. 1st Qu. Median Mean 3rd Qu. Max. > 155555 155555 155555 155555 155555 155555 R> > Maybe call it Summary() instead. yes, do use a different name. There other such functions, 'su...
2011 Feb 28
0
Gamma mixture models with flexmix
...], col=cols[ii]) } } ## ## Model dat as a mixture of Gammas then plot. ## modelGammas <- function(dat, which='BIC') { set.seed(939458) fmo <- stepFlexmix(dat ~ 1, k=1:3, model=FLXMRglm(family='Gamma')) mdl <- getModel(fmo, which=which) print(smry <- summary(mdl)) print(prm <- parameters(mdl)) plotGammaMixture(dat, prm['shape', ], prm['shape', ]*prm['coef.(Intercept)', ], smry at comptab[, 'prior']) } ## ## Works well for a single Gamma distribution. ## set.see...
2016 Aug 24
2
summary.default rounding on numeric seems inconsistent with other R behaviors
...on Fri, 19 Aug 2016 11:40:05 -0500 writes: >> It is the old story of defined behaviour and expected outcomes. Hard to >> change now. > yes... not impossible though... see below >> So I would suggest you do something like this in your ~/.Rprofile: R> smry <- function(...) summary(..., digits=6) R> smry(155555L) >> Min. 1st Qu. Median Mean 3rd Qu. Max. >> 155555 155555 155555 155555 155555 155555 R> >> Maybe call it Summary() instead. > yes, do use a different name. There other su...
2016 Aug 19
3
summary.default rounding on numeric seems inconsistent with other R behaviors
I was wondering if it would make sense to change the default behavior of the following: summary(15555L) ## Min. 1st Qu. Median Mean 3rd Qu. Max. ## 15560 15560 15560 15560 15560 15560 summary.default on numeric values rounds values (not just presentation) to getOption("digits")-3L (or four) digits by default, making those values surprising and less suitable for