Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 IDTest Result 1Test Result 2Time Between Tests (in days)
13.215.11102
22.73.45400
34.26.421

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?


Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

You could use a clustering algorithm to divide the participants into groups based on the time betwee... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Thermodynamics for Engineers

Authors: Kenneth A. Kroos, Merle C. Potter

1st edition

1133112862, 978-113311286

More Books

Students also viewed these Mechanical Engineering questions

Question

Which alternative would you recommend, under which circumstances?

Answered: 1 week ago