Login  Register

Re: negative binomial regression

Posted by Bruce Weaver on May 21, 2019; 1:22am
URL: http://spssx-discussion.165.s1.nabble.com/negative-binomial-regression-tp5737913p5737923.html

Agreed.  I thought that was odd too.  I hoped the OP might work out that
something was wrong after looking at the data file used for the UCLA
example.  Here's a relevant excerpt that should give a pretty good hint:

--- start of excerpt ---

Description of the data

Let’s pursue Example 1 from above.

We have attendance data on 314 high school juniors from two urban high
schools in the file
https://stats.idre.ucla.edu/wp-content/uploads/2016/02/nb_data.sav.  The
response variable of interest is days absent, daysabs.  The variable math is
the standardized math score for each student.  The variable prog is a
three-level nominal variable indicating the type of instructional program in
which the student is enrolled.

Let’s look at the data.  It is always a good idea to start with descriptive
statistics and plots.

    get file
"https://stats.idre.ucla.edu/wp-content/uploads/2016/02/nb_data.sav".
    descriptives variables = daysabs math.

--- end of excerpt ---

I assumed the OP knows that variable = column in SPSS.  



David Marso wrote

> I concur.  The data will need to be transposed.
>
>
> Maguin, Eugene wrote
>> I haven't seen the UCLA example that Bruce referenced. But isn't there
>> something unexpected about this statement
>>
>> (582 wards are columns; variables are rows)
>>
>> Gene Maguin
>
> --- snip ---





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).