Displaying 8 results from an estimated 8 matches for "pcmckann".
Did you mean:
mckann
2010 Dec 29
2
as.object: function doesn't exist but I wish it did
I seem to come to this problem alot, and I can find my way out of it with a
loop, but I wish, and wonder if there is a better way. Here's an example
(lmer1-5 are a series of lmer objects):
bs=data.frame(bic=BIC(lmer1,lmer2,lmer3,lmer4,lmer5)$BIC)
rownames(bs)=c('lmer1','lmer2','lmer3','lmer4','lmer5')
best=rownames(bs)[bs==min(bs)]
> best
[1]
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...;- ts(1:4, start = 2000)
window(tt, start = 2001, end = 2002)
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
------------------------------
Message: 69
Date: Fri, 10 Dec 2010 13:39:33 -0800
From: Patrick McKann <pcmckann at gmail.com>
To: r-help at r-project.org
Subject: [R] WriteXLS error:Error in get(x, envir = envir) : variable
names are limited to 256 bytes
Message-ID:
<AANLkTim5tFDvcu9hRj3jGMOqK8cNzqg8WhveSbpB67WG at mail.gmail.com>
Content-Type: text/plain
Hello all,
I don't understand why thi...
2011 Jan 05
1
get() within a command, specifically lmer
Hello all. Why doesn't this work?
d=data.frame(y=rpois(10,1),x=rnorm(10),z=rnorm(10),grp=rep(c('a','b'),each=5))
library(lme4)
model=lmer(y~x+z+(1|grp),family=poisson,data=d)
update(model,~.-z)###works, removes z
var='z'
update(model,~.-get(var))##doesn't remove z
update(model,~. -get(var,pos=d))###doesn't remove z
I am trying to remove z from the model in
2010 Jul 21
0
How do you calculate DIC from coda files (R2WinBUGS)?
I tried calculating pD as 1/2 variance of the deviance, but I got hugely
inflated numbers.
Does anybody know how to calculate pD from the coda files output from
R2WinBUGS?
By the way, 'set DIC' is greyed out for some reason within WinBUGS, so I
can't monitor DIC.
[[alternative HTML version deleted]]
2011 Apr 21
2
Error in png: unable to start png() device
Hello. I have made many pngs in the past, but started having trouble with
them yesterday. I just downloaded R 2.13.0 this morning, and was able to
make some pngs earlier this morning. Now I am trying to remake them, but
get the same error message I got yesterday:
> u='in'
> w=10.5
> h=8
> png('winbugs changepoint graphs ind hibs gt 400
2011 Feb 07
0
Combining the results from two simple linear regression models
Hi all. This is more of a stats question, I suppose.
Let's say I have two separate simple regressions of weight on year from two
different datasets. I want to combine the regressions so that I can come up
with a single equation for the total weight regressed on year. In reality,
there is missing data, so I can't just sum the data across datasets and come
up with a regression on the
2010 Jul 20
1
Nesting functions in loops that result in error messages breaking the loop
Hello all,
I am trying to write a program in R in which I call a function multiple
times within a loop. The problem is that sometimes the function breaks down
while calling another function, and produces an error message that breaks my
loop and the program stops. I would like to keep the loop running when this
function breaks down, and just move on to the next iteration in the loop.
Is there
2010 Dec 10
1
WriteXLS error:Error in get(x, envir = envir) : variable names are limited to 256 bytes
Hello all,
I don't understand why this won't work. I have entered:
WriteXLS(alldata,'test.xls')
and I get this error message:
Error in get(x, envir = envir) : variable names are limited to 256 bytes.
My variable names are not very long, and are accepted by write.csv.
alldata is a list containing 4 dataframes, with each dataframe having the
the same variable names, which are: