+ Reply to Thread
Results 1 to 3 of 3

Thread: Help with Syntax & Error received

  1. #1
    Points: 1,088, Level: 17
    Level completed: 88%, Points required for next Level: 12

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Help with Syntax & Error received



    Hello Everyone, I've tried searching but could not find a solution to this, so I am hoping you can help me.

    I am currently using the book: Applied Multivariate Statistics for the Social Sciences 5th edition by James Stevens. In the chapter on Multiple regression, he has a table 3.3 with syntax to enter in order to output the MR with other descriptives. A copy of what is in the book can be found here just scroll down to the next page (99):

    http://tinyurl.com/4dx9l72

    I have entered all of the data into the syntax editor and triple checked my entry. It matches the book's example exactly.

    However, when I run the syntax I receive the following message from SPSS:

    "Warning # 522
    An unexpected end of file has been found in the middle of reading a case. The
    Partial case will be ignored. Check your input for a possible missing record.
    Command line: 311 Current case: 6 Current splitfile group: 1"

    I am also going to past my exact syntax below. Any help you may be able to provide in solving this error would be greatly appreciated. I am new to syntax and still learning my way around SPSS. I am also running PASW 18 on my mac if that helps.

    I've looked through this forum as well as on Google. It sounds like there could be a missing record but the numbers match. I've tried changing the syntax in a few places but no result seems to do the trick.

    Thank you again for your assistance,

    JW

    My entered Syntax:
    TITLE'MORRISON MBA DATA'.
    DATA LIST FREE/INSTEVAL CLARITY STIMUL KNOWLEDG INTEREST COUEVAL.
    BEGIN DATA.
    112112 122111 111112 112112
    213222 224112 233112 234123
    223133 222222 223212 222332
    222112 224222 233113 234112
    232112 344322 343114 343123
    343223 334233 334233 343112
    345113 335123 344123 344113
    333213 335112 455234 445234
    END DATA.
    REGRESSION DESCRIPTIVES = DEFAULT/
    VARIABLES = INSTEVAL TO COUEVAL/
    STATISTICS = DEFAULTS TOL SELECTION/
    DEPENDENT = INSTEVAL/
    METHOD = STEPWISE/
    CASEWISE = ALL PRED RESID ZRESID LEVER COOK/
    SCATTERPLOT(*RES, *PRE)/.
    Last edited by jwick; 02-14-2011 at 04:28 PM.

  2. #2
    Points: 1,750, Level: 24
    Level completed: 50%, Points required for next Level: 50

    Location
    Gloucester
    Posts
    29
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Help with Syntax & Error received

    I suggest you review the SPSS help for the DATA LIST command. This indicates that variables for the command used in this example are bounded by spaces and that the variables for cases may be continued on separate lines or combined on one. Your post indicates that there are 6 variables per case, whereas there are 32 variables specified in your list. As 32 can not be divided by 6 with no remainder this suggests that the command is hoping for another 4 to complete the final case. You may find it easier just to add two more variables per line such that the variables for each case are contained on a single line.

    HTH
    Robert

  3. #3
    Points: 1,088, Level: 17
    Level completed: 88%, Points required for next Level: 12

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Re: Help with Syntax & Error received


    Robert,

    I want to thank you for your assistance. I'm still learning the program and your concise answer really helped me. I wasn't able to find the help section for the syntax on the data list... however your description lead me to make some changes which completely fixed the problem.

    There were supposed to be 32 variables, however as it was laid out in the book it appeared and was entered as if there were only 6. I believe the publisher of the book may have squished the characters together for easier reading based on each participant and not on variable.

    Your description of the space between each variable was invaluable. I added spaces within my data entry and double spaces between participants. This provided the correct results.

    Thank you again for your assistance I truly appreciate your help.

    -JW

+ Reply to Thread

Similar Threads

  1. help: SEM in linux with pre-typed syntax
    By owenpediatrica in forum R
    Replies: 2
    Last Post: 08-10-2009, 03:37 AM
  2. Syntax - how to subtract 2 columns
    By speechy in forum SPSS
    Replies: 3
    Last Post: 05-07-2009, 07:07 AM
  3. Replies: 2
    Last Post: 03-25-2009, 01:59 AM
  4. Syntax and Do Loops
    By NewYorkBoraPL in forum SAS
    Replies: 4
    Last Post: 12-24-2008, 07:37 PM
  5. SAS to JMP, Script syntax?
    By JohnReam in forum SAS
    Replies: 0
    Last Post: 11-12-2008, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats