Skip to content

Missing data and categorical M #7

@EmmHee

Description

@EmmHee

Dear Dr. Erin M. Buchanan,

Thank you very much for developing this R package and providing code, examples, and more! It is so educational and I appreciate it greatly.

My data suffers missing data (in the dv), and I think it is why get the following error:

Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 122, 72
In addition: Warning messages:
1: In badmahal + badleverage :
longer object length is not a multiple of shorter object length
2: In badmahal + badleverage + badcooks :
longer object length is not a multiple of shorter object length

I did not manage to find an argument for excluding NAs; is that correct? Do you know if there is a way around this problem?

Furthermore, I wonder if the mediation1 function could be used for a categorical M? I have found the processR (catMediation)
package, but again no argument for omitting/excluding NAs.

Thank you very much for your time.

Best regards,
Emma

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions