[R] ggplot2 - extracting values of smooth

2011-09-30 Thread dM/
ure, but how do I extract the values of the smoothed line? Many thanks, dM/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Read in from multiple Excel wksheets

2011-06-14 Thread dM/
I’ve got an Excel workbook with about 30 worksheets. Each worksheet has 1 rows of data over 30 columns. I’d like to read the data from each worksheet into a dataframe or matrix in R for processing. Normally, I use read.csv when interacting with Excel but I’d rather manipulate a multisheet wo

Re: [R] eigenvalues and correlation matrices

2011-05-27 Thread dM/
t; testmatrix <- matrix(c(2, 1, 1, 1, 3, 2, -1, 1, 2), byrow=TRUE, nrow=3) > > testmatrix > >      [,1] [,2] [,3] > [1,]    2    1    1 > [2,]    1    3    2 > [3,]   -1    1    2> eigen(testmatrix)$values > > [1] 4 2 1 > > Sarah > > > > >

[R] eigenvalues and correlation matrices

2011-05-27 Thread dM/
I'm trying to test if a correlation matrix is positive semidefinite. My understanding is that a matrix is positive semidefinite if it is Hermitian and all its eigenvalues are positive. The values in my correlation matrix are real and the layout means that it is symmetric. This seems to satisfy th

[R] Quasi-Poisson regression - using parameter estimates for QAICc

2010-01-16 Thread dm
Quasi-Poisson regression - using parameter estimates for QAICc Hello, I am using lmer (package lme4), for a GLMM, where I am modeling overdispered data with 1 random effect and several fixed effects. I want to use QAICc for my model selection, however I have 2 concerns 1) I don't know how to pr

[R] glmmPQL random effects model

2009-11-21 Thread dm dm
Dear R-helpers, I'd like to use glmmPQL to predict binary responses based on a data.frame data1 containing N entries (N<1000): target covariate1 covariate2 covariate3 ...covariateM cluster 1341311 -0.30031885 0 0-2.886870e-07 1 38370