uni- or bivariate ctm #34
Replies: 3 comments 15 replies
-
|
Hi Carlotta,
Good luck! |
Beta Was this translation helpful? Give feedback.
-
|
Hi Charles, I fit a model again with a base and state-dependent drift parameter and a time-dependent predictor that also consists of a base and a state-dependent parameter. The drift parameter is constrained to be negative, as you showed me. ctModel(type='stanct', id = "couple_id", |
Beta Was this translation helpful? Give feedback.
-
|
That looks like an equilibrium to me, can you explain where you think the problems are? Maybe you're assuming zero should be the equilibrium point, when in fact it will be determined by the auto effect and continuous intercept? |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hi Charles,
I want to compare two self-regulatory processes in terms of how quickly they return to their set point, but some problems arise:
Since they were originally measured with the same item ranging from -3 – 0 - +3, with negative deviations from zero representing one process and positive deviations from zero representing the second process, I split this item into two new variables (both ranging from 0 – 3, since I used the absolute deviations for simplicity). Now I am not sure if I can estimate both processes in a continuous time model or if two separete models are needed because of this dependent measurement.
If the latter is the case: Is it possible to compare the drift parameters between these separete contiunous time models? Do I need to convert them to discrete parameters to do this?
I tried running a simple continous time model for negative deviations as you can see here, the output from ctModelLatex is attached:
nf <- ctModel(type='stanct', id = "id",
time = "tag",
n.latent = 1,
n.manifest = 1,
manifestNames= 'n2dx',
latentNames= 'nd',
LAMBDA= 1,
DRIFT= 'a1',
MANIFESTMEANS= 0,
MANIFESTVAR= ‘me’,
CINT= ’cint’,
DIFFUSION= ‘diff’)
Since the variable has a meaningful zero-point I did not center it. However, I have to account for stable individual differences and as far as I know, you recommended to fix the manifest means and include a continuous intercept with indvarying = T. Is this sufficient? I know that including traits is possible in omx, but I did not understand how it is integrated in stan.
Also, I am assuming stationarity for the process. But if I include stationary = T in the ctStanFit operatior or try to manually set t0var and t0means as stationary, I get the following error message:
Stationary option temporarily unavailable -- reductions needed to pass all CRAN checks
How can I fix this?
Another error message I get is when I try to run ctKalman in any form:
Warning in min(x) : no non-missing arguments to min; returning Inf
Warning in max(x) : no non-missing arguments to max; returning -Inf
Error in seq.default(timerange[1], timerange[2], timestep) :
'from' must be a finite number
I assume that the error indicates that my model is not properly specified, but I have no idea what might be the problem. Could you explain why this error occures?
Thank you very much
Carlotta
ctsemTex1662538174.15687.pdf
Beta Was this translation helpful? Give feedback.
All reactions