I am working with R to conduct statistical analysis. I

I am working with R to conduct statistical analysis. I have a dataset that is composed of about a thousand rows each of which consists of participant ID, outcome result of first test, outcome result of second test, and the time duration that elapsed between tests. For example:

Participant ID Test Result 1 Test Result 2 Time Between Tests (in days)
1 3.21 5.11 102
2 2.7 3.4 5400
3 4.2 6.4 21

The goal is for me to group the 1000 or so participants into groups on the basis of the time that was elapsed between their two test attempts (which varies between just a few days to thousands of days). The intent behind this is to then conduct correlational analysis between the different time-difference groups.

I have been advised that what I need to do is conduct a random walk on a latent variable through a statistical model:

1. This model includes a latent variable that is normally distributed

2. There is a set of cutpoints that need to be estimated, which needs to be done through an ordered logistic regression

3. The latent Gaussian variable for each participant follows an Ornstein-Uhlenbeck process, a Gaussian process with an exponential kernel.

What I have done so far is imported my data from Excel to R, wherein I now have a matrix of about 1000 rows (where each row is a participant) and 5 columns (participant ID, test score at time0, test score at time1, and the elapsed duration between tests (which is different for each participant).

Where I am stuck is how to now split this data into groups (that is get the set of cutpoints that needs to be estimated). In other words, my question is how to split my continuous variable of time between tests into groups and how to move forward from there?

 

Stressed over that homework?

Essay deadline breathing down your neck?

Let’s cut to the chase: Why struggle when you can ace it with zero hassle?

Whether it’s essays, research papers, or assignments — we’ve got you covered.

✅ Expert writers
✅ 100% original work
✅ No AI tools, just real pros

Stressed about your essay or homework? Get a top-quality custom essay NOW!!! Stop worrying. Start succeeding.

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top