stata运算符

                                                         Relational
         Arithmetic              Logical            (numeric and string)
    --------------------     ------------------     ---------------------
     +   addition                &   and               >   greater than
     -   subtraction             |   or                <   less than
     *   multiplication          !   not               >=  > or equal
     /   division                ~   not               <=  < or equal
     ^   power                                         ==  equal
     -   negation                                      !=  not equal
     +   string concatenation                          ~=  not equal

    A double equal sign (==) is used for equality testing.

    The order of evaluation (from first to last) of all operators is ! (or ~), ^, - (negation), /,
    *, - (subtraction), +, != (or ~=), >, <, <=, >=, ==, &, and |.

 

posted @ 2023-02-24 21:21  myrj  阅读(54)  评论(0编辑  收藏  举报