Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
see ?library You need to load the package before R can access its functions. Kingsford Jones On Mon, May 5, 2008 at 12:18 PM, <samar at sce.carleton.ca> wrote: > Hello, > > I'm a new user of the R...
see ?"[" and notice the 'drop' argument. So in your example try dat[1, , drop=FALSE] hth, Kingsford On Tue, Jun 23, 2009 at 1:13 AM, Bogaso<bogaso.christofer at gmail.com> wrote: > > Let say, I have following matrix : > > dat...
Hi Federico, The amer and gamm4 packages will fit GAMMs using lme4. hth, Kingsford On Mon, Mar 22, 2010 at 8:06 AM, Federico Calboli <f.calboli at imperial.ac.uk> wrote: > Hi everyone, > > I'd be interested in fitting...
...which would complement the apropos fortune from John Fox: > library(fortunes) > fortune('dangerous') If you give people a linear model function you give them something dangerous. -- John Fox useR! 2004, Vienna (May 2004) On Tue, Oct 27, 2009 at 12...
> sum((x-mean(x))^2)/(n) [1] 0.4894708 > ((n-1)/n) * var(x) [1] 0.4894708 hth, Kingsford On Mon, Oct 19, 2009 at 9:30 AM, Peng Yu <pengyu.ut at gmail.com> wrote: > It seems that var...
You can use VarCorr to extract the values, but (oddly enough) it returns values as character so you need to use 'as.numeric. Here's an example: library(nlme) f1 <- lme(distance ~ age, data = Orthodont, random = ~1 + age|Subject) summary...
see ?sp::overlay and section 5.2 of Applied Spatial Data Analysis with R I see there is now also raster::overlay, but I can't claim experience with that funciton (however my impression is that the raster package is...
RSiteSearch('vec vech', restrict = 'fun') turns up several packages with vec and vech functions. E.g., matrixcalc, fUtilities, ks, ... hth, Kingsford Jones On Thu, Oct 23, 2008 at 11:47 AM, megh <megh700004 at yahoo.com> wrote: > > Can anyone please...
Ahh -- Mark Leeds just pointed out off-list that it was supposed to be a correlation matrix. Perhaps R <- matrix(runif(10000), ncol=100) R <- (R * lower.tri(R)) + t(R * lower.tri(R)) diag(R) <- 1 These are of...
A couple more ideas... If you find reading code useful, try specifying filetype:r in Google (e.g., do.call filetype:r) For firefox users, the R wiki provides search tips here: http://wiki.r-project.org/rwiki/doku.php...
example(matplot) or ?points On Thu, Oct 2, 2008 at 11:43 AM, Michel PETITJEAN <michel.petitjean at cea.fr> wrote: > I am a new user of R. > Please does somebody knows how to plot 3 datasets > (x1,a1),...,(xn...
Hi Dwight, The answer likely depends on how you are fitting the model. Have a look at the multcomp package and its vignettes to see if it can handle the model class you are interested in. hth, Kingsford Jones On...
Hi Sam. The spatstat package provides a variety of tools for working with multitype marked point patterns. See Part IV of Adrian Baddeley's spatstat workshop notes, which can be accessed here: http://www.csiro.au/resources/Spatial-Point-Patterns...
See the Bayesian Task View http://cran.r-project.org/web/views/Bayesian.html which will lead you to the arm and bayesm packages, among others. hth, Kingsford On Tue, Jul 28, 2009 at 1:54 AM, nikolay12<nikolay12 at...
see https://stat.ethz.ch/pipermail/r-sig-ecology/2008-May/000160.html hth, Kingsford On Tue, Oct 13, 2009 at 6:00 AM, Anne-Katrin Link <anne.link at gmx.de> wrote: > Normal ? ? ? ?0 ? ? ? ?21 ? ? ? ? ? ? ? ? ? ? ? ?false ? ? ? ?false > false > MicrosoftInternetExplorer4...
see ?curve e.g. qftn <- function(x) 1 + 2*x - .1*x^2 curve(qftn, 0, 10) hth, Kingsford On Mon, Oct 5, 2009 at 9:42 AM, Juliano van Melis <jvmelis at gmail.com> wrote: > Good day for all...
try: dfr <- data.frame(A=rnorm(50), B=runif(50), X=factor(sample(c('L1','L2'),50,repl=TRUE))) by(dfr[, 1:2], dfr$X, mean) hth, Kingsford Jones On Tue, Jun 23, 2009 at 7:57 PM, R_help...
Bo, Try using RSiteSearch with the strings 'huber-white', 'sandwich' or even 'clustered standard errors'. You may also want to consider a mixed models approach -- see: http://www.stat.columbia.edu/~cook/movabletype/archives/2007/11/clustered_stand.html HTH...
On the topic of visualizing correlation, see also Murdoch, D.J. and Chow, E.D. (1996). A graphical display of large correlation matrices. The American Statistician 50, 178-180. with examples here: # install.packages('ellipse') example(plotcorr, package='ellipse') On...
On Fri, Apr 10, 2009 at 2:40 PM, Shadley Thomas <shadley.thomas at gmail.com> wrote: [snip] > My question -- > It seems inefficient to determine which element is the longest and then > calculate the length of that longest element. ?I...
Can't find what you're looking for? Try searching with Google .