首页 > 其他分享 >stata运算符

stata运算符

时间:2023-02-24 21:35:31浏览次数:47  
标签:-------------------- string division 运算符 stata than

                                                         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 |.

 

标签:--------------------,string,division,运算符,stata,than
From: https://www.cnblogs.com/xkdn/p/17153212.html

相关文章

  • C语言运算符优先级(转载)
    https://www.cnblogs.com/blogernice/articles/13156017.html初级运算符()、[]、->、. 高于 单目运算符  高于 算数运算符(先乘除后加减) 高于 关系运算符......
  • C语言运算符优先级
    优先级运算符运算结合关系举例1+单目不变自右向左a*+b1-单目取负自右向左a*-b2*乘自左向右a*b2/除自左向右a/b2%取余自左向右a......
  • STATA:变量转换
    变量转换encodesex,generate(gender)//生成数值型变量genderdecodegender,generate(gender2)//根据gender变量重新生成一个字符型变量gender2recodex2(12=1)(3=2)(......
  • STATA命令:codebook
    list////+-------------------------------------------------------------------------------------------------------------------+//|make......
  • stata:产生新变量 并确定值
    bysortfemale:egeneducmed=median(educ)//赋值为educ受教育年数中位数,这项工作要求分性别进行egenhigheduc=anyvalue(educ),v(13/18)//生成一个新变量higheduc,如果edu......
  • STATA:排序分类 序号
    //如果有变量ifoi则删除该变量,否则命令即结束,准备产生新变量ifoi,如果有则删除,没有则进行下一步capdropifoi//使用正则表达式//建立新变量ifoi,如果yjszyyq包含”经......
  • STATA:字符串包含学习笔记
    keep序号事业单位主管部门举办单位岗位类别岗位等级岗位性质岗位名称招聘人数学历要求学位要求大学专科专业要求大学本科专业要求研究生专业要求其他条件......
  • JavaScript 一元运算符
    <!DOCTYPEhtml><html> <head> <metacharset="UTF-8"> <title></title> <scripttype="text/javascript"> /* *一元运算符,只需要一个操作数 * +......
  • JavaScript 运算符
    <!DOCTYPEhtml><html> <head> <metacharset="UTF-8"> <title></title> <scripttype="text/javascript"> /* *运算符也叫操作符 * 通过运算符......
  • STATA修改变量名
    //修改变量名rename姓名namerename考号kaohaorename班级banji//所有变量名为大写rename*,upper//变量名kaohao为大写renamekaohao,upper//所有变量名为小写renam......