Hello. I am very new to Rstudio and scripts and I am in the process of adapting a syntax so that it can compute an actor-partner interdependence model (if curious about this: https://psycnet.apa.org/record/2005-01893-002) on my data. Basically, I want to add a covariate to my SEM. I realize that researchers add the covariate as another independent variable in the model, but I'm not sure I can do that because the actor-partner model has a distinct look (but if I'm wrong, do let me know). So, I found syntax to help (found here: https://randilgarcia.github.io/week-dyad-workshop/APIM_SEM.html#introduction_to_lavaan under "Add a Covariate: Length of Relationship"). However, I am stuck because Rstudio does not understand the operation ":=" and neither do I. There are a few other commands it doesn't understand (e.g., cx1, cx2, CovXd, CovXa). What would help me is knowing if I have to define these functions and how. Really, any suggestions about how to proceed. I am totally out of my depth. Many thanks!