全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3429 5
2010-02-08
哪位高手知道stata怎么处理长度超过255个字符的字符型变量

数据结果如下

id          str1

1           sdfffddsfdsdsssfdfghhgh....fdfdf (一共有1000多个字母)
2           dsffdfdfddffsdfsdsdfsfdfdfg.....


stata只能读取前255个。不知有什么高招没有
二维码

扫码加我 拉你入群

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

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

全部回复
2010-2-8 18:41:23
呵呵,建议你用word
help limits 可查看Stata受限清单
二维码

扫码加我 拉你入群

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

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

2010-2-8 20:08:41
要用stata分析那些系列的分布特征
二维码

扫码加我 拉你入群

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

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

2010-2-8 20:48:24
变量的分布也取值的长度也没什么关系啊
二维码

扫码加我 拉你入群

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

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

2010-2-9 08:08:59
要算出不同的字母在序列中出现的频率,如何处理
二维码

扫码加我 拉你入群

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

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

2010-2-9 08:40:02
You can dowload the user written program -egenmore-, which provides several functions that fit your need.
e.g.

incss(strvarlist) , substr(substring) [ insensitive ] indicates occurrences of
        substring within any of the variables in a list of string variables by 1 and
        other observations by 0. insensitive makes comparison case-insensitive.
        (Stata 6 required; an alternative is now just to use foreach.)

noccur(strvar) , string(substr) creates a variable containing the number of
        occurrences of the string substr in string variable strvar.  Note that
        occurrences must be disjoint (non-overlapping): thus there are two
        occurrences of "aa" within "aaaaa". (Stata 7 required.)

    nss(strvar) , find(substr) [ insensitive ] returns the number of occurrences of
        substr within the string variable strvar.  insensitive makes counting
        case-insensitive. (Stata 6 required.)
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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