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

Deviance doesn't monotonically decrease for gaussian with missing data #8

Open
andland opened this issue Mar 17, 2015 · 2 comments
Open
Labels

Comments

@andland
Copy link
Owner

andland commented Mar 17, 2015

rows = 100
cols = 10
set.seed(1)
mat_np = outer(rnorm(rows), rnorm(cols))

mat = matrix(rpois(rows * cols, c(exp(mat_np))), rows, cols)

missing_mat = matrix(runif(rows * cols) <= 0.2, rows, cols)
count_mat_m = mat
is.na(count_mat_m[missing_mat]) <- TRUE

pca = generalizedPCA(count_mat_m, k = 1, M = 4, family = "gaussian")
plot(pca)
@andland andland added the bug label Mar 17, 2015
@andland
Copy link
Owner Author

andland commented Mar 17, 2015

It seems to be okay with k >= 2

@andland
Copy link
Owner Author

andland commented Mar 17, 2015

Also seems okay with main_effects = FALSE and k = 1. I'm pretty sure the main effects are the problem.

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