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

Ejercicio 3

Uploaded by

Luis Escobar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Ejercicio 3

Uploaded by

Luis Escobar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Ejercicio3 Thursday November 30 14:23:15 2023 Page 1

___ ____ ____ ____ ____(R)


/__ / ____/ / ____/
___/ / /___/ / /___/
Statistics/Data analysis

User: Luis
Project: M2

___ ____ ____ ____ ____ ®


/__ / ____/ / ____/ 18.0
___/ / /___/ / /___/ SE—Standard Edition

Statistics and Data Science Copyright 1985-2023 StataCorp LLC


StataCorp
4905 Lakeway Drive
College Station, Texas 77845 USA
800-STATA-PC https://www.stata.com
979-696-4600 [email protected]

Stata license: Unlimited-user network, expiring 12 Sep 2024


Serial number: 401809311919
Licensed to: Luis Escobar
Universidad de Valparaiso

Notes:
1. Unicode is supported; see help unicode_advice.
2. Maximum number of variables is set to 5,000 but can be increased;
see help set_maxvar.
3. New update available; type -update all-

1 . import excel "C:\Users\luise\Desktop\WetlandData.xlsx", sheet("WetlandData") firstrow


(16 vars, 5,151 obs)

2 . sort id set
variable id not found
r(111);

3 . sort id
variable id not found
r(111);

4 . sort ID SET

5 . egen idd =seq(),b(3)

6 . clogit choice cost highbio medbio meadow fish fence walk crayfish, group(idd)
variable choice not found
r(111);

7 . clogit CHOICE COST HIGHBIO MEDBIO MEADOW FISH FENCE WALK CRAYFISH,group(idd)

Iteration 0: Log likelihood = -1721.8827


Iteration 1: Log likelihood = -1678.6698
Iteration 2: Log likelihood = -1677.4965
Iteration 3: Log likelihood = -1677.4957
Iteration 4: Log likelihood = -1677.4957

Conditional (fixed-effects) logistic regression Number of obs = 5,151


LR chi2(8) = 417.64
Prob > chi2 = 0.0000
Log likelihood = -1677.4957 Pseudo R2 = 0.1107
Ejercicio3 Thursday November 30 14:23:15 2023 Page 2

CHOICE Coefficient Std. err. z P>|z| [95% conf. interval]

COST -.0010906 .0001265 -8.62 0.000 -.0013387 -.0008426


HIGHBIO .8148852 .0801351 10.17 0.000 .6578232 .9719472
MEDBIO .6245016 .0775356 8.05 0.000 .4725347 .7764685
MEADOW -.0378515 .059692 -0.63 0.526 -.1548458 .0791427
FISH .4206913 .0599838 7.01 0.000 .3031252 .5382574
FENCE -.1866711 .0612624 -3.05 0.002 -.3067431 -.066599
WALK .7736608 .0597123 12.96 0.000 .6566269 .8906948
CRAYFISH -.1176875 .0602335 -1.95 0.051 -.2357429 .0003679

8 . outreg2 using a.xls


a.xls
dir : seeout

9 . outreg2 using sigma.xls


sigma.xls
dir : seeout

10 . help mixed

11 . help miixlogit

12 . help mixlogit

13 . install ssc mixlogit


command install is unrecognized
r(199);

14 . ssc install mixlogit


checking mixlogit consistency and verifying not already installed...
installing into C:\Users\luise\ado\plus\...
installation complete.

15 . mixlogit CHOICE COST,rand(HIGHBIO MEDBIO MEADOW FISH WALK CRAYFISH) group(SET) id(ID)
At least one group has more than one chosen alternative
r(498);

16 . mixlogit CHOICE COST,rand(HIGHBIO MEDBIO MEADOW FISH WALK CRAYFISH) group(ID) id(SET)
At least one group has more than one chosen alternative
r(498);

17 . lca CHOICE COST HIGHBIO MEDBIO MEADOW FISH FENCE WALK CRAYFISH , nclass(3)
command lca is unrecognized
r(199);

18 . ssc install lca


ssc install: "lca" not found at SSC, type search lca
(To find all packages at SSC that start with l, type ssc describe l)
r(601);

19 .

You might also like