Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: which model do this commands refer to


From   Walter Moturi <[email protected]>
To   [email protected]
Subject   st: which model do this commands refer to
Date   Tue, 30 Jul 2013 17:52:51 +0530

hi statalisters!
below are some commands a friend of mine referred me to in solving a
querry i had on which dairy marketing channel was dominant among a set
of channels. The dominace was based on the net returns. The model to
which they belong to is still a puzzle although i got results. Please
may some one help me

 gen Vo1= ln( NET_RETURNS) if  OVR_allchannel==1
(133 missing values generated)

. gen Vo2= ln( NET_RETURNS) if OVR_allchannel==2
(120 missing values generated)

. gen Vo3= ln( NET_RETURNS) if  OVR_allchannel==3
(175 missing values generated)

. gen Vo4= ln(  NET_RETURNS) if  OVR_allchannel==4
(189 missing values generated)

. gen Vo5= ln( NET_RETURNS) if  OVR_allchannel==5
(194 missing values generated)

. sum  Vo1 Vo2 Vo3 Vo4 Vo5

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
         Vo1 |        63    10.05954    1.429657   6.063785   12.25534
         Vo2 |        76    10.77753     1.36709   4.094345   14.25545
         Vo3 |        21     10.9978    .8869691   8.594154   12.58225
         Vo4 |         7    10.72201     .814208    9.81684   11.91405
         Vo5 |         2    11.30802    .6630212   10.83919   11.77684

. twoway (kdensity Vo1) (kdensity Vo2) (kdensity Vo3) (kdensity Vo4)
(kdensity Vo5)

. cumul Vo1, gen(cVo1)

. cumul Vo2, gen(cVo2)

. cumul Vo3, gen(cVo3)

. cumul Vo4, gen(cVo4)

. cumul Vo5, gen(cVo5)

. stack cVo1 Vo1 cVo2 Vo2 cVo3 Vo3 cVo4 Vo4 cVo5 Vo5, into(c
OVR_allchannel) wide clear

. line  cVo1 cVo2 cVo3 cVo4 cVo5  OVR_allchannel, sort
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index