@mem48
Hi - thought I would test this out for some questions working through your script.
Is there a reason you don't use data.table?
Age Table - What are Mode1 and 2? (Most often and second most often?)
EPC table - Crr=Current and Ptn=Potential? How can potential_Mode be lower than Current_Mode e.g. E01000001
"Joining factors with different levels" Error - I have bluffed my way through properly understanding factors for too long - I think I might need you to explain them for me please!
First k-means graph - no clear elbow? Presume this is why you go on to dendograms?
line 141 has fit in it (cutree(fit,k=13)) - but fit is not created to line 149
Even if you jump forward to 149 and run the fit<-pvclust line - you get an error going back to 142 for the groups<-cutree...
Without this you can't create the groups to allocate to lsoa_house$hcluster in line 163
Any idea what needs tweeking to get those clusters allocated?
@mem48
Hi - thought I would test this out for some questions working through your script.
Is there a reason you don't use data.table?
Age Table - What are Mode1 and 2? (Most often and second most often?)
EPC table - Crr=Current and Ptn=Potential? How can potential_Mode be lower than Current_Mode e.g. E01000001
"Joining factors with different levels" Error - I have bluffed my way through properly understanding factors for too long - I think I might need you to explain them for me please!
First k-means graph - no clear elbow? Presume this is why you go on to dendograms?
line 141 has fit in it (cutree(fit,k=13)) - but fit is not created to line 149
Even if you jump forward to 149 and run the fit<-pvclust line - you get an error going back to 142 for the groups<-cutree...
Without this you can't create the groups to allocate to lsoa_house$hcluster in line 163
Any idea what needs tweeking to get those clusters allocated?