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

您所在的位置:网站首页 stata中如何输入数据 请问stata里面用IF语句的时候怎么表示两个条件

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

2024-07-11 22:24| 来源: 网络整理| 查看: 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 办公设备维修网 版权所有 豫ICP备15022753号-3