On Mon, 4 Oct 2004, Thomas Lumley wrote:
> On Mon, 4 Oct 2004, weihong wrote:
> >> program
> > function(dataset)
> > {
> >tmp<-glm(weta~1, family=poisson, data=dataset)
> >tmp.f<-step(tmp,~.+jd)
> > }
> >
> > When I run program(data) in 1.9.0, an error message appears:
> >
> > Erro
On Mon, 4 Oct 2004, weihong wrote:
program
function(dataset)
{
tmp<-glm(weta~1, family=poisson, data=dataset)
tmp.f<-step(tmp,~.+jd)
}
When I run program(data) in 1.9.0, an error message appears:
Error in model.frame.default(formula = WETA ~ jd, data = dataset,
drop.unused.levels = TR
weihong wrote:
I am wondering why my function works fine in R1.7.1 and R1.8.1 but not in
R1.9.0. I thought it's an environment related problem but I can't solve it.
data
weta jd
1 1 4
2 2 13
3 2 13
4 6 4
5 1 3
6 1 7
7 2 10
8 3 10
9 1 8
101 8
11
I am wondering why my function works fine in R1.7.1 and R1.8.1 but not in
R1.9.0. I thought it's an environment related problem but I can't solve it.
>data
weta jd
1 1 4
2 2 13
3 2 13
4 6 4
5 1 3
6 1 7
7 2 10
8 3 10
9 1 8
101 8
113 6
121