Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding Z with MERF function #4

Open
CBroedlow opened this issue Aug 17, 2023 · 0 comments
Open

Understanding Z with MERF function #4

CBroedlow opened this issue Aug 17, 2023 · 0 comments

Comments

@CBroedlow
Copy link

CBroedlow commented Aug 17, 2023

Hello,

I am trying to understand how to use the z matrix with the MERF function. I have 12 biomarkers repeated over 3-time points (baseline,1 month, and 6 months) and would like to use the biomarker concentrations to try and predict my outcome, the number of times a participant had the infection state. Everything I have read online uses a matrix of all 1s with the number of rows equal to my predictor matrix. I want to have z as (1|PID) + (1|PID: days) but I am very confused about how to do that with a matrix.

Also, I have only gotten the function to work when y is numeric and I would prefer to use a categorical response. Does y need to be numeric or am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant