Skip to content

Tweak for GloSpheReg to operate on multiple covariates.#16

Open
kasselhingee wants to merge 2 commits into
functionaldata:ObjectDatafrom
kasselhingee:ObjectData
Open

Tweak for GloSpheReg to operate on multiple covariates.#16
kasselhingee wants to merge 2 commits into
functionaldata:ObjectDatafrom
kasselhingee:ObjectData

Conversation

@kasselhingee

Copy link
Copy Markdown

Hi Yaqing and others,

Just a quick bug fix suggestion. Hope I've chosen the right branch. The function GloSpheReg() only works when there is a single covariate, that is when xin is a single column matrix. For this case, using length(xin) gives the number of data points. For multiple covariates it does not.

Since xin is converted to a matrix early on, nrow(xin) will give the correct number of data points for both single or multi-covariate situations.

I've made this change to GloSpheGeoReg() and GloSpheReg(), and added a test to check (and used GloSpheReg() myself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant