Skip to content

Allow for dummy variables in reg_simulate and similar functions #2

@mattiasvillani

Description

@mattiasvillani

The current implementation of the regression simulators generates the covariates internally as normals or uniforms. This makes it impossible to simulate a regression with dummy variables.
Solution: add the input argument X, which is the whole matrix of covariates (which can then be simulated in whatever way one likes) with a default as NA. If X == NA, the code then generates the X internally as done currently.

Metadata

Metadata

Assignees

No one assigned

    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