Skip to content

soc.csa encounter the Error on the example code of Taste dataset #105

@419kfj

Description

@419kfj

I am checking the taste data set example of "Taste dataset" on p52 of https://cran.r-project.org/web/packages/soc.ca/soc.ca.pdf

On the csa part, I encounter the error.

options(passive=NULL)
class.age     <- which(data_taste$Age == '55-64')
result.csca   <- soc.csa(result.mca, class.age, sup)

Error is as following.

colSums(sup) でエラー: 'x' は数値でなければなりません
(Sorry my system is Japanese, so the message is in Japanese. It meas Error at colSums(sup) 'x' have to be numeric. )

I know "sup" is defind at the top of this example script,
sup <- data.frame(data_taste$Gender, data_taste$Age, data_taste$Income)
.

So I expact to pass the "sup" directly and try as next .

result.csca   <- soc.csa(result.mca, class.age)

It generate the result. But I am not sure this result is reliable.

How can I do on this issue.

regards.

kazuo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions