请问stata里面用IF语句的时候怎么表示两个条件 您所在的位置:网站首页 双重条件的if函数怎么使用 请问stata里面用IF语句的时候怎么表示两个条件

请问stata里面用IF语句的时候怎么表示两个条件

2023-08-26 13:14| 来源: 网络整理| 查看: 265

能不能查查帮助啊

或者把基础的书先看看。

----------------------------------------------------------------------------------------------------------help for if                                                                manual:  [U] 14 Language syntax----------------------------------------------------------------------------------------------------------

if qualifier

        command if exp

    exp in the syntax diagram means an expression, such as age>21.  See help exp for an explanation of    expressions.

    There is another if used in Stata programming; see help ifcmd.

Description

    if at the end of a command means the command is to use only the data specified.  if is allowed with    most Stata commands.

Examples

    . list make mpg if mpg>25

    . list make mpg if mpg>25 & mpg25 | mpg



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有