I would like to fix one of the random effects for the FOCEI estimation fitting, and I would receive an following error:
ERROR: syntax: invalid named tuple field name “η[1]” around /home/jrun/data/code/Rat_testmod/Version1.jmd:196
Hello,
I think you can fix your omega by defining all random effects individually rather than using PDiagDomain in param block and MvNormal in random block.
I am not sure if we can fix the subset of parameters when we use PDiagDomain.
You can define the random effects in this way.
@param begin
Ω_cl ∈ RealDomain(lower=0.0001)
Ω_vc ∈ RealDomain(lower=0.0001)
@random begin
η_cl ~ Normal(0, sqrt(Ω_cl))
η_vc ~ Normal(0, sqrt(Ω_vc))
Thank you so much for your response. I would still like to know whether it is feasible to fix the ETA parameters to 0 (removing the random effect for that parameter) I would like to compare the models without defining the model domain.
to fix individual elements, your omegas should be written as Dawoon suggested. i.e. you cannot fix Ω[1] when you specified the random block as PDDiagDomain. (not you don’t fix the ETA, you fix the variance of that ETA distribution)
Once you write individual Normal() for each Omega via a RealDomain, then you can choose to fix parameters directly in the fit function using the constantcoef, documentation for which you can find here
e.g.
I did how Dawoon suggested as following. How can I specify the variance covariance matrix when using naive pooled method as it is specified individually? I tried to align all of them and it would not work as wel.
My apologies for not being clear. I am having a hard time figuring out how to specify the omegas after writing the individual Normal() for each omega via RealDomain.
Thank you for your response. I am having a hard time figuring out how to specify the omegas when using naive.pooled(). How should I specify after omegas= ?
Thank you for your response. I wonder why that method is not working. FOCE is working just fine, but I’m still having trouble trying to run Naivepooled method. Omegas are all defined but I am not sure why it is still giving me that it is not defined.
I am not sure what are you trying to do but why do you need to define omegas in your model?
Naivepooled analysis considers that all the data comes from one subject so there is no between subject variability to be accounted for in that case. Please let me know if you are trying to do something else
Yes, here is no between subject variability. Yet I believe to use Pumas.NaivePooled() function there is a omegas= condition to must add.
I am trying to figure out how to specify the omegas condition.