spGLM
Hi Bedilu, Thanks for the post. Given your description, you should not be getting that error. Would you mind emailing me directly an example with data that reproduces the error? Thanks- Andy
On 08/24/2017 12:33 AM, Bedilu Ejigu wrote:
When I run a spatial model in R using spGLM function from spBayes package,
the following error message popup.
Error in spGLM(ane ~ 1, family = "binomial", data = FemaleAug, coords
= coord, :
error: either the coords have more than two columns or then number
of rows is different than
data used in the model formula
But, the number of columns in for coords are two, and the number of
rows also similar with the dataset used in the model
dim(coord)[1] 15233 2> dim(FemaleAug)[1] 15233 11
*_______________________________________________* <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.avast.com_sig-2Demail-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Dwebmail-26utm-5Fterm-3Dicon&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=vOgWsEpXC-0Xwo-gVRww3A&m=PJ3MQSOol3LkkKQUUYhaakIn9sHbYI1BvcPIdqRqgdI&s=TkyWuUAovom0L7MuZNEJ-3vBzLo0zHdYA04P_XwGR5I&e= > Virus-free. www.avast.com <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.avast.com_sig-2Demail-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dlink-26utm-5Fcampaign-3Dsig-2Demail-26utm-5Fcontent-3Dwebmail-26utm-5Fterm-3Dlink&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=vOgWsEpXC-0Xwo-gVRww3A&m=PJ3MQSOol3LkkKQUUYhaakIn9sHbYI1BvcPIdqRqgdI&s=BfdbRCOLnk-n-yL_fJCSiI0Ek0jyFindH4HfroFg_BE&e= > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dsig-2Dgeo&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=vOgWsEpXC-0Xwo-gVRww3A&m=PJ3MQSOol3LkkKQUUYhaakIn9sHbYI1BvcPIdqRqgdI&s=99t4yTictDFtDmoddyYrTfGsS4HVtiR38GYMKohfFxM&e=
Andrew Finley, PhD Natural Resources Building Michigan State University East Lansing, MI 48824-1222 Phone: 517-898-5970 Skype: finle014 Fax: 517-432-1143 Web: http://blue.for.msu.edu