Factor scores after GRM estimation to be appended to dataset

瀏覽次數:35 次
跳到第一則未讀訊息

Paul Kamudoni

未讀,
2017年8月29日 清晨5:51:592017/8/29
收件者:mirt-package
Hi Phil

I have generated factor scores following estimation of GRM - my question is how do I append the factor scores generated to the data.frame used in model estimation ? rather than the factor scores being a separate data frame.

Thanks,
Paul

Seongho Bae

未讀,
2017年8月30日 上午10:51:092017/8/30
收件者:mirt-package
Just do this;

mod1 <- mirt(Science, 1)
df <- data.frame(fscores(mod1, QMC = T))

That's it.

Seongho

2017년 8월 29일 화요일 오후 6시 51분 59초 UTC+9, Paul Kamudoni 님의 말:

Phil Chalmers

未讀,
2017年8月30日 下午1:57:282017/8/30
收件者:Paul Kamudoni、mirt-package
Do you mean just join them onto the original dataset? If so,

mod <- mirt(Science, 1)
fs <- fscores(mod)
newScience <- data.frame(Science, fs)
head(newScience)

Phil

--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回覆所有人
回覆作者
轉寄
0 則新訊息