Skip to content

analyse_mi_data() when the exact imputation method is unknown. #50

Description

@wwojciech

Hi,

This issue concerns the analysis step:

# Step 4: Analyse each imputed dataset
ana_obj <- analyse_mi_data(data = ADMI, vars = vars, method = method, fun = ancova)

The analyse_mi_data() function requires the method argument, which assumes that the user knows the imputation method that was used to create ADMI. However, this is not always the case.

Issues:

  1. How should this parameter be initialized when the imputation method is unknown?
  2. My understanding is that method is used to select the appropriate pooling method;
    2.1. Is it used for any other computations as well?
    2.2. If its sole purpose is to determine the pooling method, would it make sense to allow users to specify the pooling method directly? For example:
    pooling_method = get_pooling(method)
    
    where get_pooling() would be a helper function that returns a pooling method corresponding to a given imputation method, while still allowing users to specify the pooling method explicitly when the imputation method is unknown.

Thanks for any clarification or comments.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions