Path: news.mathworks.com!not-for-mail
From: "Tom Lane" <tlane@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: glmfit
Date: Wed, 4 Nov 2009 12:51:49 -0500
Organization: The MathWorks, Inc
Lines: 13
Message-ID: <hcsevl$2o4$1@fred.mathworks.com>
References: <hcs7jq$dnp$1@fred.mathworks.com> <hcs88q$qgf$1@fred.mathworks.com> <hcs9uq$ecf$1@fred.mathworks.com>
Reply-To: "Tom Lane" <tlane@mathworks.com>
NNTP-Posting-Host: lanet.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1257357109 2820 172.31.57.151 (4 Nov 2009 17:51:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 17:51:49 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:582468


> Now I used the vector of zeros as only regressor but the output of the 
> function is that the matrix is singular to working precision.
...
> Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com> wrote in message
>>    x = zeros(size(y,1),0)
>>    glmfit(x,[y n],'binomial','link','probit')

Did you do it the way Peter suggested? He has created not a vector of zeros, 
but an array with the right number of rows and zero columns.

-- Tom