Hello,
I´m using a survey data (example below) and I´m trying to calculate some statistics using the svy command. However, everytime I used it, appear a message saying "no observations". For example if I use the command svy: tab i_sex it appears a message saying "no observations". Can you help me with this? Thank you in advance.
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Listed 100 out of 2809 observations
Use the count() option to list more
Best regards
I´m using a survey data (example below) and I´m trying to calculate some statistics using the svy command. However, everytime I used it, appear a message saying "no observations". For example if I use the command svy: tab i_sex it appears a message saying "no observations". Can you help me with this? Thank you in advance.
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long(pidp pid i_psu) int i_strata byte i_sex float i_indscui_lw 68041499 -8 2084 2042 2 . 68044215 -8 2084 2042 1 . 68046939 -8 2084 2042 1 . 68056463 -8 2108 2054 2 . 68060535 -8 2108 2054 1 . 68063935 -8 2132 2066 1 . 68142143 -8 2276 2138 1 . 68180899 -8 2348 2174 2 . 68191775 -8 2372 2186 1 . 68197223 -8 2396 2198 1 . 68226455 -8 2444 2222 2 . 68228503 -8 2444 2222 1 . 68230539 -8 2444 2222 1 . 68244819 -8 2468 2234 1 . 68247539 -8 2492 2246 1 . 68265219 -8 2516 2258 2 . 68288335 -8 2564 2282 1 . 68293103 -8 2564 2282 2 . 68331179 -8 2660 2330 2 . 68333215 -8 2660 2330 1 . 68344771 -8 2684 2342 2 . 68351575 -8 2684 2342 2 . 68367899 -8 2732 2366 1 . 68427055 -8 2828 2414 1 . 68427059 -8 2828 2414 1 . 68561015 -8 3092 2546 1 . 68561019 -8 3092 2546 2 . 68595023 -8 3164 2582 2 . 68596375 -8 3164 2582 1 . 68624255 -8 3212 2606 1 . 68624259 -8 3212 2606 1 . 68680015 -8 3332 2666 1 . 68680019 -8 3332 2666 1 . 68690895 -8 3356 2678 2 . 68705855 -8 3380 2690 2 . 68705859 -8 3380 2690 2 . 68740539 -8 3452 2726 2 . 68740603 -8 3452 2726 2 . 68740607 -8 3452 2726 1 . 68808535 -8 3596 2798 1 . 68813983 -8 3596 2798 1 . 68813987 -8 3596 2798 2 . 68815335 -8 3596 2798 2 . 68901695 -8 3764 2882 2 . 68901699 -8 3764 2882 2 . 68903739 -8 3764 2882 2 . 68903743 -8 3764 2882 2 . 68928215 -8 3812 2906 2 . 68963575 -8 3884 2942 1 . 69007099 -8 3980 2990 1 . 69053335 -8 4076 3038 2 . 69070343 -8 4100 3050 1 . 69075095 -8 4100 3050 2 . 69075099 -8 4100 3050 1 . 69078499 -8 4124 3062 2 . 69083255 -8 4124 3062 2 . 69083259 -8 4124 3062 2 . 69105019 -8 4172 3086 1 . 69111135 -8 4172 3086 2 . 69118615 -8 4196 3098 2 . 69172339 -8 4292 3146 1 . 69172343 -8 4292 3146 1 . 69183897 121927113 109 26 1 . 69262775 -8 4484 3242 1 . 69263451 -8 4484 3242 1 . 69298135 -8 4556 3278 2 . 69325335 -8 4604 3302 2 . 69325339 -8 4604 3302 1 . 69345055 -8 4628 3314 2 . 69375651 -8 7078 3322 1 . 69375655 -8 7078 3322 1 . 69389255 -8 7098 3322 2 . 69391295 -8 7101 3322 1 . 69431415 -8 7161 3324 2 . 69431419 -8 7161 3324 2 . 69451135 -8 7190 3324 1 . 69622489 112447694 72 16 1 . 69625901 152179399 185 52 1 . 69667373 122928113 205 61 1 . 69667377 152240616 205 61 2 . 69706137 132706571 140 37 1 . 69727897 152342133 90 20 1 . 69786369 123234034 175 49 2 . 69848935 -8 7784 3336 1 . 69848939 -8 7784 3336 1 . 69848943 -8 7784 3336 2 . 69865933 113015895 17 6 2 . 69865937 162437099 17 6 2 . 69907415 -8 7870 3337 2 . 70041377 133440184 12 4 1 . 70076055 -8 8149 3342 2 . 70116175 -8 8209 3343 1 . 70116179 -8 8209 3343 1 . 70207293 133794245 20 7 1 . 70231773 153193107 29 10 2 . 70337175 -8 8537 3349 2 . 70432373 123801478 34 11 1 . 70432377 153510048 34 11 1 . 70484733 153610522 101 23 2 . 70510573 144007304 34 11 2 . end label values pid pid label def pid -8 "inapplicable", modify label values i_psu i_psu label values i_strata i_strata label values i_sex i_sex label def i_sex 1 "male", modify label def i_sex 2 "female", modify
Listed 100 out of 2809 observations
Use the count() option to list more
Best regards

Comment