Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scaling covariates breaks model selection #3

Closed
ianfiske opened this issue Feb 18, 2010 · 1 comment
Closed

scaling covariates breaks model selection #3

ianfiske opened this issue Feb 18, 2010 · 1 comment
Labels

Comments

@ianfiske
Copy link
Owner

library(unmarked)
data(frogs)
M <- nrow(pfer.bin)
J <- ncol(pfer.bin)
SiteCovs <- siteCovs <- data.frame(sitevar1 = rnorm(M))
ObsCovs <- obsCovs <- data.frame(obsvar1 = rnorm(M*J))
siteCovs$sitevar1 <- scale(siteCovs$sitevar1)
obsCovs$obsvar1 <- scale(obsCovs$obsvar1)
pferUMF1 <- unmarkedFrameOccu(y=pfer.bin,siteCovs = siteCovs,obsCovs = obsCovs)
pferUMF2 <- unmarkedFrameOccu(y=pfer.bin,siteCovs = SiteCovs,obsCovs = ObsCovs)
obsCovs(pferUMF2) <- scale(obsCovs(pferUMF2))
summary(pferUMF1)
summary(pferUMF2)
identical(pferUMF1,pferUMF2)

@ianfiske
Copy link
Owner Author

I can't reproduce this bug.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant