number of children?
I am also trying to calculate the number of children for adult respondent. The following are stata commands. But the proportion of childless seems high. Could any expert could tell if there are any problems with the stata commands below? Many thanks in advance.
*Number of children within the household
generate a006 = .
foreach x of varlist a006_1_-a006_16_ {
generate `x'1 = 1 if `x' == 7
replace `x'1 = 0 if !missing(`x') & `x' != 7
replace a006 = . if missing(`x'1) & missing(a006)
replace a006 = `x'1 + a006 if !missing(`x'1) & !missing(a006)
replace a006 = `x'1 if !missing(`x'1) & missing(a006)
replace a006 = a006 if missing(`x'1) & !missing(a006)
}
* Number of children obtained by adding the number of children of their own within
* ¬ within the household&adopted children not within the household
generate Bio_Child_Out = cb001 if !missing(cb001)
replace Bio_Child_Out = 0 if missing(cb001)
generate Ado_Child_Out = cb009 if !missing(cb009)
replace Ado_Child_Out = 0 if missing(cb009)
generate Child_Num = a006 + Bio_Child_Out + Ado_Child_Out
label variable Child_Num "Number of Children"
. tab Child_Num
Number of |
Children | Freq. Percent Cum.
------------+-----------------------------------
0 | 796 11.74 11.74
1 | 3,327 49.05 60.78
2 | 1,497 22.07 82.85
3 | 565 8.33 91.18
4 | 287 4.23 95.42
5 | 170 2.51 97.92
6 | 87 1.28 99.20
7 | 34 0.50 99.71
8 | 15 0.22 99.93
9 | 3 0.04 99.97
10 | 2 0.03 100.00
------------+-----------------------------------
Total | 6,783 100.00
相关知识
Benefits of Physical Activity
Good sleep habits for infants and children
Narrative Review of Hydration and Selected Health Outcomes in the General Population
儿童的身心健康][Physical and mental health for young children]
Impact of Lifestyle on Health
Implementation of pre
雅思大作文范文分析
Health promotion
Feature: Board a naval ship for health: China's Peace Ark treats hundreds in Tanzania
电刺激生物反馈干预结合康复护理在先天性巨结肠术后肛门失禁患儿中的应用
网址: number of children? https://www.trfsz.com/newsview1151854.html
推荐资讯
- 1发朋友圈对老公彻底失望的心情 12775
- 2BMI体重指数计算公式是什么 11235
- 3补肾吃什么 补肾最佳食物推荐 11199
- 4性生活姿势有哪些 盘点夫妻性 10428
- 5BMI正常值范围一般是多少? 10137
- 6在线基础代谢率(BMR)计算 9652
- 7一边做饭一边躁狂怎么办 9138
- 8从出汗看健康 出汗透露你的健 9063
- 9早上怎么喝水最健康? 8613
- 10五大原因危害女性健康 如何保 7828
