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

the Arguments "return.MIvalues" in the function factor.scores is no use, when I let it TRUE or FALSE, it's result is same #10

Open
ICESDHR opened this issue Feb 26, 2019 · 2 comments

Comments

@ICESDHR
Copy link

ICESDHR commented Feb 26, 2019

No description provided.

@ICESDHR ICESDHR changed the title the Arguments "return.MIvalues" in the function faxtor.scores is no use, when I let it TRUE or FALSE, it's result is same the Arguments "return.MIvalues" in the function factor.scores is no use, when I let it TRUE or FALSE, it's result is same Feb 26, 2019
@ICESDHR
Copy link
Author

ICESDHR commented Feb 26, 2019

Don't have extra attributes "zvalues.MI" and "var.zvalues.MI"

@ICESDHR ICESDHR closed this as completed Feb 26, 2019
@ICESDHR ICESDHR reopened this Feb 26, 2019
@PaulTMcG
Copy link

PaulTMcG commented Sep 2, 2019

I have the same problem. Here's a reproduce-able example:
set.seed(382)
df <- bind_rows(data.frame(one = sample(c(4, 5), 100, replace = T),
two = sample(c(4, 5), 100, replace = T),
three = sample(c(4, 5), 100, replace = T),
four = sample(c(4, 5), 100, replace = T),
five = sample(c(4, 5), 100, replace = T)),
data.frame(one = sample(c(3, 4, 5), 150, replace = T),
two = sample(c(3, 4, 5), 150, replace = T),
three = sample(c(3, 4, 5), 150, replace = T),
four = sample(c(3, 4, 5), 150, replace = T),
five = sample(c(3, 4, 5), 150, replace = T)),
data.frame(one = sample(c(2, 3, 4), 250, replace = T),
two = sample(c(2, 3, 4), 250, replace = T),
three = sample(c(2, 3, 4), 250, replace = T),
four = sample(c(2, 3, 4), 250, replace = T),
five = sample(c(2, 3, 4), 250, replace = T)),
data.frame(one = sample(c(1, 2, 3), 250, replace = T),
two = sample(c(1, 2, 3), 250, replace = T),
three = sample(c(1, 2, 3), 250, replace = T),
four = sample(c(1, 2, 3), 250, replace = T),
five = sample(c(1, 2, 3), 250, replace = T)),
data.frame(one = sample(c(0, 1, 2), 150, replace = T),
two = sample(c(0, 1, 2), 150, replace = T),
three = sample(c(0, 1, 2), 150, replace = T),
four = sample(c(0, 1, 2), 150, replace = T),
five = sample(c(0, 1, 2), 150, replace = T)),
data.frame(one = sample(c(0, 1), 100, replace = T),
two = sample(c(0, 1), 100, replace = T),
three = sample(c(0, 1), 100, replace = T),
four = sample(c(0, 1), 100, replace = T),
five = sample(c(0, 1), 100, replace = T))
)

fit_df <- grm(df, Hessian = TRUE)
scores_df <- factor.scores.grm(fit_df)
scores_mi_df <- factor.scores.grm(fit_df, method = "MI", B = 10, return.MIvalues = TRUE)

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

No branches or pull requests

2 participants