nspope / radish

Fast gradient-based optimization of resistance surfaces
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

qr(spdat)$rank == ncol(spdat) #7

Open nataliemyers12 opened 11 months ago

nataliemyers12 commented 11 months ago

What does this error mean?

nspope commented 11 months ago

It means that the design matrix (e.g. the spatial covariates per raster cell) is rank deficient -- some of the covariates are linear combinations of other covariates.

Definitely should replace the asserts with informative error messages, though!

nataliemyers12 commented 11 months ago

Ahh got it! Thank you so much.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Nate Pope @.> Sent: Sunday, October 22, 2023 7:42:39 PM To: nspope/radish @.> Cc: nataliemyers12 @.>; Author @.> Subject: Re: [nspope/radish] qr(spdat)$rank == ncol(spdat) (Issue #7)

It means that the design matrix (e.g. the spatial covariates per raster cell) is rank deficient -- some of the covariates are linear combinations of other covariates.

Definitely should replace the asserts with informative error messages, though!

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/nspope/radish/issues/7*issuecomment-1774346026__;Iw!!PvDODwlR4mBZyAb0!TdogdDQhOG9w9lu4dHJga-Nzblr7AzvYLbSPOEs3tPnLzjNc1qb3qjXDjFfn5psUTi1t_jogHpvkpy3T1t0Gk2-izw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/A75ULKANWX77M6HPOFZJ7VLYAXKR7AVCNFSM6AAAAAA6LLV7UWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGM2DMMBSGY__;!!PvDODwlR4mBZyAb0!TdogdDQhOG9w9lu4dHJga-Nzblr7AzvYLbSPOEs3tPnLzjNc1qb3qjXDjFfn5psUTi1t_jogHpvkpy3T1t3SjwUHMQ$. You are receiving this because you authored the thread.Message ID: @.***>