Re: [R] Spline regression (or any localized regression) in the setting of a random effects model.

2014-04-21 Thread Kenneth Frost
: > > This email message, including any attachments, is for ...{{dropped:14}} > > __ > 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/

Re: [R] lme: subject-specific slopes.

2012-12-04 Thread Kenneth Frost
University of Maryland School of Medicine Division of Gerontology > Baltimore VA Medical Center > 10 North Greene Street > GRECC (BT/18/GR) > Baltimore, MD 21201-1524 > (Phone) 410-605-7119 > (Fax) 410-605-7913 (Please call phone number above prior to faxing)>>> > Ken

Re: [R] How to plot linear, cubic and quadratic fitting curve in a figure?

2012-06-13 Thread Kenneth Frost
Hi, Kristi- Here is an option. ?curve...to add the polynomials to your graph ?textfor adding the R2 to you plot Ken On 06/13/12, Kristi Glover wrote: > > Hi R experts, > Could you please help me to fit a linear, cubic and quadratic curve in a > figure? I was trying to show all these three

Re: [R] Does anyone knows a KMeans ++ package for R?

2012-02-29 Thread Kenneth Frost
I believe there is also an example of how to select initial values for k-means in Modern and Applied Statistics with S (Venables and Ripley). Ken On 02/29/12, Pascal Oettli wrote: > Dear Rui, > > Did you have a look at 'pracma' package? There is a 'kmeanspp' function. > > Best Regards, > Pasc

Re: [R] Color cells of a matrix as in Excel

2012-02-14 Thread Kenneth Frost
ues printed in the cells? > > > > > > On Tue, Feb 14, 2012 at 2:35 PM, Kenneth Frost > wrote: > > > > > Hi, John- > > > > > Would it be possible to scale the values in each column to fall between 0 > > and

Re: [R] Color cells of a matrix as in Excel

2012-02-14 Thread Kenneth Frost
Hi, John- Would it be possible to scale the values in each column to fall between 0 and 1 (or standardize them) and use a single color ramp? Ken On 02/14/12, John Nicholas wrote: > All, > > I frequently make spreadsheets in Excel in which I rank values in columns > by stop-light colors (red is

Re: [R] breakpoints and nonlinear regression

2012-01-17 Thread Kenneth Frost
Sorry, that wasn't to helpful...I see that the intervals and se.fit argument are currently ignored. On 01/17/12, crimsonengineer87 wrote: > Dear Forum, > > I have been wracking my head over this problem for the past few days. I have > a dataset of (x,y). I have been able to obtain a nonlinear

Re: [R] breakpoints and nonlinear regression

2012-01-17 Thread Kenneth Frost
Hi, Julian- I'm not sure if this will be what you want but you could start by taking a look at: ?predict.nls Ken On 01/17/12, crimsonengineer87 wrote: > Dear Forum, > > I have been wracking my head over this problem for the past few days. I have > a dataset of (x,y). I have been able to obtain

Re: [R] ggplot2 reorder factors for faceting

2011-11-08 Thread Kenneth Frost
Hi, Iain- You might want to have a look at ?relevel i.e.  plotData$infection<-relevel(plotData$infection, ref = 'InfC') Ken On 11/08/11, Iain Gallagher wrote: > > > Dear List > > I am trying to draw a heatmap using ggplot2. In this heatmap I have faceted > my data by 'infection' o

Re: [R] help

2011-07-22 Thread Kenneth Frost
Hi, Kim- For starters you might have a look at ?by ?tapply ?aggregate Ken On 07/22/11, kimberly sels wrote: > Hi, > > I need to calculate the average length of a trait per individual. I am not > used to working with R so I could use some help. > The table goes like this: > > indtrait > 1