Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Statistics > Re: VERY IM****...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3510 of 3659
Post > Topic >>

Re: VERY IM****TANT.....SPSS multinomial logistic regression

by illywhacker <illywacker@[EMAIL PROTECTED] > Jun 19, 2008 at 08:31 AM

On Jun 19, 4:26=A0pm, "A.A.A" <ayaf...@[EMAIL PROTECTED]
> wrote:
> Hi,
> I am making an SPSS syntax that should take data written on an excel
> file, then apply a multinomail logit model to this
> data. This syntax should be repeated for 50
> datasets(datas1,datas2,...........datas50).I want to get 2 outputs
>
> 1-the estimated parameters
> 2-the percentage of correct classification
>
> But i want this output to be saved in excel files(not in the form of
> tables as the SPSS output)
> so that
> =A0 =A0 =A0 =A0 =A0output file "1" carries the parameters and % of
correc=
t
> classification resulting from applying the multinomial logit to
> datas1
> =A0 =A0 =A0 =A0 =A0 output file "2" carries the parameters and % of
corre=
ct
> classification resulting from applying the multinomial logit to
> datas2
> =A0 =A0 =A0 =A0 =A0 output file "3" carries the parameters and % of
corre=
ct
> classification resulting from applying the multinomial logit to
> datas3
> =A0and so on till datas50
>
> First ,how could i run the multinomial logit through the syntax?
> second,how could i run this 50 times?
> third, how could i get the output as desired?
>
> Would it be like this?if so, how to complete with this syntax?
>
> *loading the excel file containing the data.
> *****************************************************.
> Define !Xel().
> !do !i=3D1 !to 50.
> GET DATA
> =A0 /TYPE=3DXLS
> =A0 /FILE=3D!Quote(!concat('E:\simulationexcel\', 'datas', !i, '.xls'))
> =A0 /SHEET=3Dname 'Sheet1'
> =A0 /CELLRANGE=3Dfull
> =A0 /READNAMES=3Don
> =A0 /ASSUMEDSTRWIDTH=3D32767.
>
> =A0*saving the file after droping unwanted columns, then loading the
> new
> file.
>
*************************************************************************=
**=AD=AD=AD
> ********.
> SAVE OUTFILE=3D !quote(!concat('E:\work\', 'datas', !i, '.sav'))
> =A0 /DROP=3DV1 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 /COMPRESSED.
>
> GET
> =A0 FILE=3D !quote(!concat('E:\work\', 'datas', !i, '.sav')).
> DATASET NAME DataSet3 WINDOW=3DFRONT.
>
> *computing MLE.
> ******************
>
> NOMREG
> =A0 V14 =A0(BASE=3DLAST ORDER=3DASCENDING) WITH @[EMAIL PROTECTED]
 @[EMAIL PROTECTED]
> =A0 /CRITERIA CIN(95) DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20)
> LCONVERGE(0) PCONVERGE(0.000001) SINGULAR(0.00000001)
> =A0 /MODEL
> =A0 /STEPWISE =3D PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE)
> ENTRYMETHOD(LR) REMOVALMETHOD(LR)
> =A0 /INTERCEPT =3DINCLUDE
> =A0 /PRINT =3D CLASSTABLE PARAMETER SUMMARY LRT CPS STEP MFI
> =A0 /SAVE PREDCAT .
>
> Waiting for your reply
> Thanks inadvance

Are you paying me? Or do you just sound like you are?

illywhacker;
 




 2 Posts in Topic:
VERY IMPORTANT.....SPSS multinomial logistic regression
"A.A.A" <aya  2008-06-19 07:26:29 
Re: VERY IMPORTANT.....SPSS multinomial logistic regression
illywhacker <illywacke  2008-06-19 08:31:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 22:44:43 CST 2008.