Skip to content

tamaan loading model prior and non-parametric IRT (tam.np) #13

@andreanorcinipala

Description

@andreanorcinipala

Hi,
I am encountering two separate issues: How to specify model priors with tamaan and use tam.np.

RE: model prior. I could not find any example on how to specify lambdas' model prior in tamaan. I tried to come up with potential ways, but it is not working at all.

One example is:
tammodel <- "
F1=~A1__A10
F1 ~~ 1*F1

MODEL PRIOR:
p1arace1_F1_load__p9arace1_F1_load ~ N(0,2);
"

Another example is:
tammodel <- "
F1=~lamb1__lamb10A1__A10
F1 ~~ 1
F1

MODEL PRIOR:
lamb1__lamb10 ~ N(0,2);
"
May you provide an example of how to specify lambas' prior?

The second issue is related to tam.np. I have tried to run example 1 (TAM page 177 https://cran.r-project.org/web/packages/TAM/TAM.pdf)

data(data.cqc02, package="TAM")
dat <- data.cqc02

mod <- TAM::tam.np(dat)

But I keep getting an error:
Error: Not compatible with requested type: [type=NULL; target=double].
In addition: Warning message:
In max(sqrt((probs - probs0)^2 * pi_k_array)) :
no non-missing arguments to max; returning -Inf

Can you please help with this?
Thanks
Andrea

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions