全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
21041 8
2015-08-29
为什么每次录入数据后,有些数据都会出现图上这样,提示:time variable must contain only integer values。 I54LK{2E213~Y~`S9{]9{~6.png
二维码

扫码加我 拉你入群

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

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

全部回复
2015-8-29 21:02:48
提示不是说了吗
时间变量必须是整数啊
你的数据中时间变量不是整数
二维码

扫码加我 拉你入群

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

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

2015-8-30 11:20:31
蓝色 发表于 2015-8-29 21:02
提示不是说了吗
时间变量必须是整数啊
你的数据中时间变量不是整数
嘿嘿  谢谢您  请问stata的相关性检验怎么显示星星呢?5 %1% 10%都显示。那个pwcorr_a不知道怎么弄
二维码

扫码加我 拉你入群

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

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

2015-8-30 15:56:03
SarahLee1212 发表于 2015-8-30 11:20
嘿嘿  谢谢您  请问stata的相关性检验怎么显示星星呢?5 %1% 10%都显示。那个pwcorr_a不知道怎么弄
你如果安装了pwcorr_a命令,就可以查到帮助

help pwcorr_a                                                                       A modified version of stata pwcorr command
------------------------------------------------------------------------------------------------------------------------------

Title

    [R] pwcorr_a --   pairwise correlation coefficients


Syntax

    Display all pairwise correlation coefficients

        pwcorr_a [varlist] [if] [in] [weight] [, pwcorr_options]

    pwcorr_options       Description
    ------------------------------------------------------------------------------------------------------------------------
    Main
      obs                print number of observations for each entry
      sig                print significance level for each entry
      print(#)           significance level for displaying coefficients
      star(#)            significance level for displaying with a star
      star1(#)           1% significance level for displaying with three stars, newly added
      star5(#)           5% significance level for displaying with two stars, newly added
      star10(#)          10% significance level for displaying with one star, newly added
      bonferroni         use Bonferroni-adjusted significance level
      sidak              use Sidak-adjusted significance level
    ------------------------------------------------------------------------------------------------------------------------

    varlist may contain time-series operators; see tsvarlist.
    by may be used with the correlate and pwcorr; see by.
    aweights and fweights are allowed; see weight.


Description

    pwcorr_a displays all the pairwise correlation coefficients between the variables in varlist or, if varlist is not
    specified, all the variables in the dataset.
    The main differecne between pwcorr_a and the stata old command pwcorr is that, this new one can display ***(1%
    significance level), **(5% significance level), and *(10% significance level), say, at the same time, while in the case
    of pwcorr, only one of these can be done.


Options

        +------+
    ----+ Main +------------------------------------------------------------------------------------------------------------

    obs adds a line to each row of the matrix reporting the number of observations used to calculate the correlation
        coefficient.

    sig adds a line to each row of the matrix reporting the significance level of each correlation coefficient.

    print(#) specifies the significance level of correlation coefficients to be printed.  Correlation coefficients with
        larger significance levels are left blank in the matrix.  Typing pwcorr, print(.10) would list only correlation
        coefficients significant at the 10% level or better.

    star(#) specifies the significance level of correlation coefficients to be starred.  Typing pwcorr, star(.05) would star
        all correlation coefficients significant at the 5% level or better.

    star1(#) star5(#) star10(#) are newly added, which specify the significance level of correlation coefficients more
        detailed.  Typing pwcorr, star1(.01) star5(.05) star10(.1) would star all correlation coefficients significant at
        the 1%, 5%, and 10% level, respectively.

    bonferroni makes the Bonferroni adjustment to calculated significance levels.  This affects printed significance levels
        and the print() and star() options.  Thus pwcorr, print(.05) bonferroni prints coefficients with Bonferroni-adjusted
        significance levels of .05 or less.

    sidak makes the Sidak adjustment to calculated significance levels.  This affects printed significance levels and the
        print() and star() options.  Thus pwcorr, print(.05) sidak prints coefficients with Sidak-adjusted significance
        levels of .05 or less.


Examples

    . pwcorr_a
                                                                                                same as stata command pwcorr  
    . pwcorr_a price weight mpg displ, star1(0.01) star5(0.05) star10(0.1)
二维码

扫码加我 拉你入群

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

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

2015-8-30 16:01:09
蓝色 发表于 2015-8-30 15:56
你如果安装了pwcorr_a命令,就可以查到帮助

help pwcorr_a                                          ...
没有安装  不知道怎么安装
二维码

扫码加我 拉你入群

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

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

2015-8-30 16:20:25
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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