在使用R.NET创建( 从包S4 object
中的函数的输出时。mirt
engine.Evaluate("library(mirt); data(LSAT6); x=mirt(LSAT6,1)");
S4Object Convertedinput = inputtoCsharp.AsS4();
我需要在消息框中看到 x(x 的所有插槽)的输出。
我怎样才能做到这一点?
因为没有方法可以做这样的事情:
int[] resp_c = new int [] {1,1,1,1};
**IntegerVector resp_cR = engine.CreateIntegerVector(resp_c);**
engine.SetSymbol("resp_c", resp_cR);
engine.Evaluate("ff=fscores(x, response.pattern=resp_c)");
上面的事情是为整数向量完成的。我需要S4 object
在 R中模拟相同的内容。
我将如何做到这一点?