全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
4816 7
2014-11-15
请问空缺值是包含在什么范围内?比如说要一个变量的范围是大于零的,其中也包括空缺值吗?另外两个变量都是数值型的,一个空缺值加一个数字是等于这个数字?还是等于空缺值?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-11-16 20:32:23
第一:你说的空缺值应该是missing value   ,在stata中它就等于.
第二:变量范围大于0,应该没有包含缺失值的。
第三:最后一个你自己加一下就可以看到结果了,应该是回到那个数值。
有不对的地方还请见谅
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-11-17 10:47:15
garlic123 发表于 2014-11-16 20:32
第一:你说的空缺值应该是missing value   ,在stata中它就等于.
第二:变量范围大于0,应该没有包含缺失 ...
谢谢。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-8-12 11:35:16
garlic123 发表于 2014-11-16 20:32
第一:你说的空缺值应该是missing value   ,在stata中它就等于.
第二:变量范围大于0,应该没有包含缺失 ...
试了一下,好像是数字-缺失值=缺失值,崩溃了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-8-12 16:15:31
看Stata的帮助missing values的解释啊。
这个不能猜啊。
Stata里面有27种缺失值表示,

Title

    [U] 12.2.1 Missing values
Description
    Stata has 27 numeric missing values:
        ., the default, which is called the "system missing value" or sysmiss
    and
       .a, .b, .c, ..., .z, which are called the "extended missing values".

    Numeric missing values are represented by large positive values.  The ordering is
                                   all nonmissing numbers < . < .a < .b < ... < .z
    Thus, the expression age > 60 is true if variable age is greater than 60 or missing.
    To exclude missing values, ask whether the value is less than ".".  For instance,
        . list if age > 60 & age < .

    To specify missing values, ask whether the value is greater than or equal to ".".  For instance,

        . list if age >=.

    Stata has one string missing value, which is denoted by "" (blank).


Remarks

    More details concerning missing values and their treatment in Stata are provided under the following headings:

        Overview
        Expressions
        Operators
        Functions
        Matrices
        Useful commands
        Value labels
        Estimation commands
        Technical note:  Version 7 and earlier


    Overview

    1.  Stata supports different types of numeric missing values that can be used to specify different reasons that
        a value is unknown.  The most frequently used missing value ., referred to as sysmiss, is nearly always
        generated by Stata when it cannot assign a specific value.  The 26 extended missing values .a, .b, ..., .z
        are available to users requiring more elaborate tracking of missing values.

        Empty strings are treated as missing values of type string.

    2.  Numeric missing values are represented by large positive values.  This means that an expression such as
        income > 100 evaluates to true for missing values of the variable income, as well as to those that are
        greater than 100.  Also, the simple expression if varname evaluates to true for all nonzero values of
        varname, including missing values.

    3.  The ordering of missing values is

                                   all nonmissing numbers < . < .a < .b < ... < .z

    4.  Most Stata statistical commands deal with missing values by disregarding observations with one or more
        missing values (called "listwise deletion" or "complete cases only").
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2019-4-10 20:34:46
garlic123 发表于 2014-11-16 20:32
第一:你说的空缺值应该是missing value   ,在stata中它就等于.
第二:变量范围大于0,应该没有包含缺失 ...
stata的数据文件中,缺失值的表现形式并不只有“.”,一般的还有“.d”“.e”....“.r”,类似的都是空缺值,如果不了解数据中的数值形态,而是自己默认所有空缺值都是“.”,那么在处理空缺值(比如drop if VAR==.)的时候就会漏掉很多。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群