search for: ssw_grid40km

Displaying 1 result from an estimated 1 matches for "ssw_grid40km".

2011 Feb 21
0
r-square for cluster
...# there is 22 clusters { data_group <- subset(grid40km.data,grid40km.cluster==i, select=c(X1, X2, X3, X4, X5)) SSgroup <- (nrow(data_group-1)*sum(apply(data_group,2,var))) # SS for all variables for a given cluster SStot_grid40km=append(SStot_grid40km, SSgroup,after=length(SStot_grid40km)) } ssw_grid40km = sum(SStot_grid40km) #withinSS (??) as the sum of SS for all clusters ssbetween_grid40km = SSTot-ssw_grid40km RSQ_grid40km2 = ssbetween_grid40km/SSTot # R-square Am I right? Does this correspond to SAS's R2? Many thanks, Yan Ressources Naturelles Canada Service Canadien des ForĂȘts - C...