我有一个包含 12 个变量的数据集,每个变量取值 1 到 4,并被视为序数。如果我没有指定它们的类型,它们将被视为间隔类型
> attributes(gower_dist)
$class
[1] "dissimilarity" "dist"
$Size
[1] 5845
$Metric
[1] "mixed"
$Types
[1] "I" "I" "I" "I" "I" "I" "I" "I" "I" "I" "I" "I"
但如果我添加'type=list(ordratio=1:12)',则类型变为'T',我确定它代表什么。如果它不代表序数,那么我如何告诉雏菊我正在输入序数数据?
> attributes(gower_dist)
$class
[1] "dissimilarity" "dist"
$Size
[1] 5845
$Metric
[1] "mixed"
$Types
[1] "T" "T" "T" "T" "T" "T" "T" "T" "T" "T" "T" "T"