[R] problem with HoltWinters

2003-09-03 Thread Luis Miguel Almeida da Silva
Dear helpers I'm having a problem with function HoltWinters from package ts. I have a time series that I want to fit an Holt-Winters model and make predictions for the next values. I've already built an object of class ts to serve as input to HoltWinters. But then I get an error; I've used

[R] variable names

2003-07-22 Thread Luis Miguel Almeida da Silva
Dear helpers I want to use rpart several times in a loop to build a classification tree. My problem is that rpart needs a formula as argument and for that the variables need to have names and this doesn't happen in my case. Every iteration in the loop has a different dataset with several

RE: [R] variable names

2003-07-22 Thread Luis Miguel Almeida da Silva
[mailto:[EMAIL PROTECTED] Sent: Tue 22/07/2003 14:57 To: Luis Miguel Almeida da Silva Cc: [EMAIL PROTECTED] Subject: Re: [R] variable names On Tue, 22 Jul 2003, Luis Miguel Almeida da Silva wrote: Dear helpers

[R] dispersion matrices

2003-06-23 Thread Luis Miguel Almeida da Silva
Hello Does R have any function that calculates from a data matrix with several classes the between and within dispersion matrices S_b and S_w Thanks Luis __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Kmeans again

2003-06-06 Thread Luis Miguel Almeida da Silva
Dear helpers I'm sorry to insist but I still think there is something wrong with the function kmeans. For instance, let's try the same small example: dados-matrix(c(-1,0,2,2.5,7,9,0,3,0,6,1,4),6,2) I will choose observations 3 and 4 for initial centers and just one iteration. The results

[R] kmeans

2003-06-04 Thread Luis Miguel Almeida da Silva
Dear helpers I was working with kmeans from package mva and found some strange situations. When I run several times the kmeans algorithm with the same dataset I get the same partition. I simulated a little example with 6 observations and run kmeans giving the centers and making just one