0% found this document useful (0 votes)
6 views2 pages

Assignment

The document contains output from Stata software, detailing a logistic regression analysis on food security based on various factors including age, sex, education, and family size. The analysis indicates a significant relationship between food security and education, family size, and livestock ownership, with a pseudo R2 value of 0.7652. Additionally, it notes issues with unrecognized commands and an invalid serial number for the software license.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Assignment

The document contains output from Stata software, detailing a logistic regression analysis on food security based on various factors including age, sex, education, and family size. The analysis indicates a significant relationship between food security and education, family size, and livestock ownership, with a pseudo R2 value of 0.7652. Additionally, it notes issues with unrecognized commands and an invalid serial number for the software license.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

___ ____ ____ ____ ____ (R)

/__ / ____/ / ____/


___/ / /___/ / /___/ 15.0 Copyright 1985-2017 StataCorp LLC
Statistics/Data Analysis StataCorp
4905 Lakeway Drive
College Station, Texas 77845 USA
800-STATA-PC [Link]
979-696-4600 stata@[Link]
979-696-4601 (fax)

Single-user Stata perpetual license:


Serial number: 301506215585
Licensed to: [Link]
Iran Will Defeat US

Notes:
1. Unicode is supported; see help unicode_advice.

Checking for updates...


(contacting [Link]
invalid serial number; contact [Link] for assistance
unable to check for update; verify Internet settings are correct.

. import excel "C:\Users\pc\Desktop\Food security [Link]", sheet("Sheet1") firstrow

. logit FOODSECUR AGE SEX

Iteration 0: log likelihood = -83.225601


Iteration 1: log likelihood = -80.666254
Iteration 2: log likelihood = -80.62695
Iteration 3: log likelihood = -80.62693
Iteration 4: log likelihood = -80.62693

Logistic regression Number of obs = 148


LR chi2(2) = 5.20
Prob > chi2 = 0.0744
Log likelihood = -80.62693 Pseudo R2 = 0.0312

FOODSECUR Coef. Std. Err. z P>|z| [95% Conf. Interval]

AGE .0477655 .0267569 1.79 0.074 -.0046771 .1002081


SEX .7015365 .4447404 1.58 0.115 -.1701387 1.573212
_cons -1.399917 1.199239 -1.17 0.243 -3.750382 .9505487

. EDUC
command EDUC is unrecognized
r(199);

. FAMSIZE
command FAMSIZE is unrecognized
r(199);

. LS
command LS is unrecognized
r(199);

. OXEN
command OXEN is unrecognized
r(199);

. logit FOODSECUR AGE SEX EDUC FAMSIZE LS OXEN DR ACTFAMLAB ACREDIT IMPROVSEED OFFI TRVMRKT EXPER FERTILIZER

Iteration 0: log likelihood = -83.225601


Iteration 1: log likelihood = -32.585617
Iteration 2: log likelihood = -22.464096
Iteration 3: log likelihood = -19.751945
Iteration 4: log likelihood = -19.54771
Iteration 5: log likelihood = -19.543205
Iteration 6: log likelihood = -19.543201
Iteration 7: log likelihood = -19.543201

Logistic regression Number of obs = 148


LR chi2(14) = 127.36
Prob > chi2 = 0.0000
Log likelihood = -19.543201 Pseudo R2 = 0.7652

FOODSECUR Coef. Std. Err. z P>|z| [95% Conf. Interval]

AGE .1434988 .0875914 1.64 0.101 -.0281772 .3151749


SEX .4312825 1.379745 0.31 0.755 -2.272968 3.135533
EDUC .292169 .1373387 2.13 0.033 .0229901 .5613479
FAMSIZE -1.150593 .5897507 -1.95 0.051 -2.306483 .0052975
LS 1.158161 .4119998 2.81 0.005 .3506566 1.965666
OXEN 1.345389 .4747664 2.83 0.005 .4148644 2.275914
DR -.1172329 .997669 -0.12 0.906 -2.072628 1.838162
ACTFAMLAB 2.201356 1.309493 1.68 0.093 -.3652022 4.767915
ACREDIT 2.038738 1.450939 1.41 0.160 -.8050497 4.882526
IMPROVSEED 2.029951 1.083068 1.87 0.061 -.0928223 4.152725
OFFI .3147433 1.426696 0.22 0.825 -2.481529 3.111015
TRVMRKT -.0404051 .0188502 -2.14 0.032 -.0773509 -.0034593
EXPER 3.267875 1.275144 2.56 0.010 .7686393 5.767112
FERTILIZER 2.160163 1.207093 1.79 0.074 -.205696 4.526021
_cons -15.60362 7.060643 -2.21 0.027 -29.44222 -1.76501

Note: 0 failures and 3 successes completely determined.

. logit FOODSECUR AGE SEX EDUC FAMSIZE LS OXEN DR ACTFAMLAB ACREDIT IMPROVSEED OFFI TRVMRKT EXPER FERTILIZER, or

Iteration 0: log likelihood = -83.225601


Iteration 1: log likelihood = -32.585617
Iteration 2: log likelihood = -22.464096
Iteration 3: log likelihood = -19.751945
Iteration 4: log likelihood = -19.54771
Iteration 5: log likelihood = -19.543205
Iteration 6: log likelihood = -19.543201
Iteration 7: log likelihood = -19.543201

Logistic regression Number of obs = 148


LR chi2(14) = 127.36
Prob > chi2 = 0.0000
Log likelihood = -19.543201 Pseudo R2 = 0.7652

FOODSECUR Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]

AGE 1.154305 .1011073 1.64 0.101 .9722161 1.370499


SEX 1.53923 2.123745 0.31 0.755 .103006 23.00088
EDUC 1.339329 .1839417 2.13 0.033 1.023256 1.753034
FAMSIZE .3164492 .1866261 -1.95 0.051 .099611 1.005312
LS 3.184074 1.311838 2.81 0.005 1.42 7.139667
OXEN 3.839681 1.822952 2.83 0.005 1.514165 9.736818
DR .8893781 .8873049 -0.12 0.906 .1258546 6.284978
ACTFAMLAB 9.037262 11.83423 1.68 0.093 .6940563 117.6736
ACREDIT 7.680913 11.14454 1.41 0.160 .4470657 131.9636
IMPROVSEED 7.613716 8.246169 1.87 0.061 .9113554 63.60709
OFFI 1.369908 1.954441 0.22 0.825 .0836153 22.44382
TRVMRKT .9604003 .0181038 -2.14 0.032 .925565 .9965467
EXPER 26.2555 33.47954 2.56 0.010 2.156829 319.6133
FERTILIZER 8.672548 10.46857 1.79 0.074 .8140805 92.39024
_cons 1.67e-07 1.18e-06 -2.21 0.027 1.63e-13 .1711851

Note: _cons estimates baseline odds.


Note: 0 failures and 3 successes completely determined.

. probit FOODSECUR AGE SEX EDUC FAMSIZE LS OXEN DR ACTFAMLAB ACREDIT IMPROVSEED OFFI TRVMRKT EXPER FERTILIZER

Iteration 0: log likelihood = -83.225601


Iteration 1: log likelihood = -26.781121
Iteration 2: log likelihood = -20.542056
Iteration 3: log likelihood = -19.33489
Iteration 4: log likelihood = -19.289291

You might also like