Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Absolute value needed in stata code for rounding_4sigdig.do #2

Description

@jrothbaumcensus

replace var' = round(var',10^(floor(log10(`var'))-3))
should be:

replace var' = round(var',10^(floor(log10(abs(`var')))-3))

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