[R] Cluster validation

2007-06-17 Thread Graham Leask
Dear list

Is v-fold cross-validation  for cluster analysis available in R? 

If anyone can point me towards the appropriate link I would
greatly appreciate it.

Graham


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Reshape data

2007-03-01 Thread GRAHAM LEASK
I have two data frames with a number of common variables that I wish to put 
into long format.
   
  The first contains the variables
   
  es(Csales)
 [1] terr   Dec.02 Jan.03 Feb.03 Mar.03 Apr.03 May.03 Jun.03
 [9] Jul.03 Aug.03 Sep.03 Oct.03 Nov.03 Dec.03 Jan.04 Feb.04
[17] Mar.04 Apr.04 May.04 Jun.04 Jul.04 Aug.04 Sep.04 Oct.04
   
  For this the following code works fine.
   
  Csall-reshape(Csales, idvar = terr, timevar = month,
  varying = list(c(Dec.02,Jan.03,Feb.03,Mar.03,
  Apr.03,May.03,Jun.03,Jul.03,Aug.03,Sep.03,
  Oct.03,Nov.03,Dec.03,Jan.04,Feb.04,Mar.04,
  Apr.04,May.04,Jun.04,Jul.04,Aug.04,Sep.04,
  Oct.04)),direction = long)
   
  The second dataset contains the variables
   
  es(Ccalls)
 [1] TERRITORY REGIONACTIVITY_TYPE
 [4] CONTACT_TYPE  TARGETED_FLG  CONTACT_GRADE
 [7] CONTACT_PR_SPECIALITY UBM   DEC02
[10] JAN03 FEB03 MAR03
[13] APR03 MAY03 JUN03
[16] JUL03 AUG03 SEP03
[19] OCT03 NOV03 DEC03
[22] JAN04 FEB04 MAR04
[25] APR04 MAY04 JUN04
[28] JUL04 AUG04 SEP04
[31] OCT04  
   
  Trying the following code on this set produces an error
   
  Ccall-reshape(Ccalls, idvar = TERRITORY, timevar = MONTH,
  v.names = list(c(TERRITORY,REGION,ACTIVITY_TYPE,CONTACT_TYPE,
  TARGETED_FLG,CONTACT_GRADE,CONTACT_PR_SPECIALITY,UBM)),
  varying = list(c(Dec.02,Jan.03,Feb.03,Mar.03,
  Apr.03,May.03,Jun.03,Jul.03,Aug.03,Sep.03,
  Oct.03,Nov.03,Dec.03,Jan.04,Feb.04,Mar.04,
  Apr.04,May.04,Jun.04,Jul.04,Aug.04,Sep.04,
  Oct.04)),direction = long)
   
  Where am I going wrong here?
   
  Any help would be greatly appreciated.


Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email [EMAIL PROTECTED]
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help with cluster stopping rules

2007-02-16 Thread GRAHAM LEASK
Is there a function available in R that implements Mojena's Upper Tail Rule or 
that draws a Mojena plot? 
   
  I would also like to find a function that implements Duda and Hart's stopping 
rule.
   
  Finally with function cophenet how can I achieve a straightforward Cophenet 
correlation coefficient (i.e. one number for example 0.876) that gives the 
agreement between the structure of the data as interpreted by the clustering 
method and the original data?
   
  If anyone could let me know where I can find a script file for these 
functions I would greatly appreciate it.


Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email [EMAIL PROTECTED]
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Duda Hart Index

2007-02-12 Thread GRAHAM LEASK
Is the Duda  Hart clustering index available within R?
   
  If so I would greatly appreciate the script file.
   
  Many thanks


Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email [EMAIL PROTECTED]
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] V fold cross validation

2007-02-12 Thread GRAHAM LEASK
Does any package available in R contain the V-fold cross-validation method for 
determining the right number of clusters?
   
  Any help greatly appreciated


Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email [EMAIL PROTECTED]
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] RE gap statistic in cluster analysis

2007-02-09 Thread GRAHAM LEASK
Has anyone implemented Tibrishani's gap statistic in R or S plus? If so I would 
greatly appreciate the relevant script file.
   
  Any help will be much appreciated


Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email [EMAIL PROTECTED]
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Diebold Mariano Test

2006-11-24 Thread Graham Leask
Dear List

Has anyone used R to distnguish between alternative forecasting models? In 
particular 
is the Diebold Mariano test available for use within R.

Any assistance would be greatly appreciated.



Graham Leask
Lecturer in Strategy
Economics  Strategy Group
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: 0121 204 3150
E Mail: [EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Box's M test

2006-10-21 Thread GRAHAM LEASK
Dear List
   
  I am looking for a script that will calculate the Box M test to test the 
homogeneity of the variance/covariance matrix between two matrices.
   
  If anyone could send me the script I would appreciate it.
   
  I am aware of the scepticism about this test, where due to extreme 
sensitivity a p value of 0.01 is recommended. Despite this however Box's M test 
is the established method for identification of stable strategic time periods 
within the strategic management literature and I would like the opportunity to 
use this method within either R or S plus.
   
  Any help would be gratefully received.
   
  Kind regards
   
   
  Graham

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Box M test

2006-10-21 Thread GRAHAM LEASK
  Dear List
   
  I am looking for a script that will calculate the Box M test to test the 
homogeneity of the variance/covariance matrix between two matrices.
   
  If anyone could send me the script I would appreciate it.
   
  I am aware of the scepticism about this test, where due to extreme 
sensitivity a p value of 0.01 is recommended. Despite this however Box's M test 
is the established method for identification of stable strategic time periods 
within the strategic management literature and I would like the opportunity to 
use this method within either R or S plus.
   
  Any help would be gratefully received.
   
  Kind regards
   
   
  Graham



Kind regards


Dr Graham Leask
Economics and Strategy Group
Aston Business School
Aston University
Aston Triangle
Birmingham
B4 7ET

Tel: Direct line 0121 204 3150
email [EMAIL PROTECTED]
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.