Re: [R] Function bug when sourcing

2014-12-27 Thread peter dalgaard
A pair of braces: {} would seem required. -pd > On 27 Dec 2014, at 21:07 , Ernie Stokely wrote: > > I am unable to figure out why I get this error in the code below: > > Error in as.Date(data.dates.x, format = "%m/%d/%Y") : > object 'data.dates.x' not found > > Here is the code with comments

[R] Function bug when sourcing

2014-12-27 Thread Ernie Stokely
I am unable to figure out why I get this error in the code below: Error in as.Date(data.dates.x, format = "%m/%d/%Y") : object 'data.dates.x' not found Here is the code with comments deleted: - ConvertExcelDateData <- function(ticker.prices,

Re: [R] predict.lqm

2014-12-27 Thread peter dalgaard
Looks like a bug in predict.lqm. If nq != 1 and !missing(newdata), it ends up using yhat without having computed it. You need to contact the maintainer: > maintainer("lqmm") > On 27 Dec 2014, at 15:30 , Nathan Pace wrote: > > Hi, > > I can estimate quantile regression models, but canąt get t

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-27 Thread peter dalgaard
> On 27 Dec 2014, at 03:12 , David Winsemius wrote: > > No. As I said before, all I see when I enter myMap at the console prompt is a > set of RGB values displayed, not as a graphic item but rather as a character > matrix with [1:78,1:1280]-entries. ggmap(myMap) looks like a better idea, or

[R] predict.lqm

2014-12-27 Thread Nathan Pace
Hi, I can estimate quantile regression models, but can¹t get the proper syntax for the newdata argument in the predict.lqm function. Specifically: The model call Des.Iso.ATE.lqm <- lqm(Wakeup.0.30 ~ Anesthetic, data = Des.Iso.dt,weights = get.weights(Des.Iso.ATE.ps, stop.method = 'es.mean'), ta

Re: [R] ANOVA test

2014-12-27 Thread peter dalgaard
> On 27 Dec 2014, at 02:50 , Richard M. Heiberger wrote: > > Kristi, > > The easiest way to do what you are looking for is the aovSufficient function > in the HH package. > > ## install.packages("HH") ## if you don't have it yet > library(HH) > B.aov <- aovSufficient(mean ~ site, data=B, sd=B$