Displaying 1 result from an estimated 1 matches for "cophencbw".
Did you mean:
cophenc
2009 Jul 30
1
stepwise variable selection method wanted
...combining forward-backward would be much better. I was hoping that someone has a better /faster selection procedure that can be adapted to using the CPCC.
Below my backward selection function and example.
Thanks and cheers
Herry
################################################
require(cluster)
cophenCbw<-function(dta){
# cophenetic variable selection backward
if(!is.data.frame(dta)) {print("x must be a dataframe with variables as columns, cases as rows")}
else if(ncol(dta) <3) {pring("input dataframe must have at least 3 columns")}
else {
#currently function only performs...