Error with "create_profiles_cluster"

Hello everyone,

I'm using the package "prcr". When I run the following function

profiles.1 <- create_profiles_cluster(dataset, dataset$ZSCARED_TOT, dataset$ZCSI_TOT, dataset$ZCD_TOT, n_profiles = 4, to_center = F, to_scale = F, distance_metric = "squared_euclidean", linkage = "ward.D")

the following message appears:

Prepared data: Removed 0 incomplete cases
Error in stats::hclust(distance_matrix, method = linkage) :
NA/NaN/Inf in chiamata a funzione esterna (arg 10)

Could you please help me?

Thank you in advance

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.