VPC not printing
Posted: Fri Feb 15, 2019 1:45 pm
Hello
I just started using R2MLwiN and I am replicating Zhang's et al (2016) R2MLwiN example (Page 8). I don't know why the Variance Partition Coefficient is not Printing. This is my code, and as I see here it should print the result as soon as I run it
# Variance Partition Coefficient (VPC) by pulling relevant slot "RP" -random part -of this S4 class object
print(VPC <- VarCompModel["RP"] [["RP2_var_Intercept"]] /
(VarCompModel["RP"] [["RP1_var_Intercept"]] + (VarCompModel["RP"] [["RP2_var_Intercept"]]))
And it should yield
[1] 0.1659064
What can I do?
David
I just started using R2MLwiN and I am replicating Zhang's et al (2016) R2MLwiN example (Page 8). I don't know why the Variance Partition Coefficient is not Printing. This is my code, and as I see here it should print the result as soon as I run it
# Variance Partition Coefficient (VPC) by pulling relevant slot "RP" -random part -of this S4 class object
print(VPC <- VarCompModel["RP"] [["RP2_var_Intercept"]] /
(VarCompModel["RP"] [["RP1_var_Intercept"]] + (VarCompModel["RP"] [["RP2_var_Intercept"]]))
And it should yield
[1] 0.1659064
What can I do?
David