Questions tagged [longitudinal]

Data from studies or processes with multiple observations over time. Econometrics is a typical topic where such data would be collected and analyzed. Proper analysis will take into account auto-correlation and cross-correlation.

Filter by
Sorted by
Tagged with
11votes
1answer
740views

Implementing Longitudinal Random Forest with LongituRF package in R

I have some high dimensional repeated measures data, and i am interested in fitting random forest model to investigate the suitability and predictive utility of such models. Specifically i am trying ...
user avatar
4votes
3answers
76views

Reorganize multiple variables based on date variable in R

If I have a dataset that has scores from the same measure collected at different time points, how can I organize those dates/times so they represents a timepoint after a certain date? Is this possible ...
user avatar
  • 89
3votes
2answers
193views

Within-group operations in R (not rolling sum)

I have a dataset comprised of students (id) and the grade they where in every year: library(data.table) set.seed(1) students <- data.table("id" = rep(1:10, each = 10), "year" = rep(...
user avatar
  • 161
3votes
1answer
474views

How to calculate nonlinear (binary) Fixed-Effects Logit for Longitudinal/Panel Data?

I'm trying to estimate child work based on a lagged variable on children's school aspirations. I'm deciding whether I should use glm or clogit to run my models (need fixed effect logits). When I run ...
user avatar
3votes
2answers
107views

Carry Forward Data for Each Case

In SPSS, how do I pull forward longitudinal data to blank cells for each id? Example: ID Time Gender 1 1 M 1 2 . 1 3 . 2 1 F 2 2 . 2 3 . 3 1 . 3 2 F 3 3 . How ...
user avatar
3votes
1answer
36views

R: How to delete ID from a list of multiple strings in a longitudinal format

I had an earlier post regarding how to delete ID if any of the rows within ID contain certain strings (e.g., A or D) from the following data frame in a longitudinal format. These are R code examples ...
user avatar
  • 47
3votes
2answers
268views

(Longitudinal data) Create new variable with last value for each ID

I am working with a longitudinal dataset with ID's, timestamps, and values. I would like to create a new variable for each individual that saves the value for the last timestamp for that individual in ...
user avatar
  • 33
3votes
2answers
130views

How to do longitudinal analysis for 2x2x2 design in R?

I have a dataset with the following variables for the treatment (nutrition, fertilizer), that records algal growth in water across time (t0, t1...t10). In series with fertilizer marked as "nitrogen" , ...
user avatar
3votes
1answer
58views

Visualisation of longitudinal meta-analysis in R

I am trying to create a line graph in R that plots longitudinal data as part of a meta-analysis. I am looking to plot age on the x axis, with volume on the y axis. Some studies have up to 4 timepoints....
user avatar
  • 31
3votes
1answer
425views

why do results of clogit and bife function (both in R) differ?

I like to calculate a logistic fixed effect panel regression (conditional maximum likelihood) in R and get predicted values and/or average marginal effects. I found two functions: bife and clogit ...
user avatar
  • 31
3votes
0answers
526views

Fit curve in spaghetti plot

For descriptive plots in R studio, I would like to fit a regression curve in my spaghetti plot. To create the spaghetti plot I used: library(lattice) GCIP <- data_head$GCIP time_since_on &...
user avatar
  • 493
3votes
1answer
435views

estimate a repeated measures random effects model with a nested structure using `plm()`

Is it possible to estimate a repeated measures random effects model with a nested structure using plm() from the plm package? I know it is possible with lmer() from the lme4 package. However, lmer() ...
user avatar
  • 7,617
2votes
2answers
52views

R: To convert wide dataframe into longitudinal format with more than more than two columns [duplicate]

I have dataframe like the following: > head(n) # A tibble: 6 x 23 `Record ID of REGN DATA` Pain_1 Pain_2 Redness_1 Redness_2 Swelling_1 Swelling_2 <dbl> <chr> &...
user avatar
  • 315
2votes
2answers
40views

Dropping subsequent observations after the occurrence of an event in a longitudinal data set

I got longitudinal data set where I want to drop observations after the event of interest have happend. This means I want to drop all observations after the dummy-variable indicating the event of ...
user avatar
  • 89
2votes
1answer
4kviews

How to check and control for autocorrelation in a mixed effect model of longitudinal data?

I have behavioral data for many groups of birds over 10 days of observation. I wanted to investigate whether there is a temporal pattern in some behaviors (e.g. does mate competition increase over ...
user avatar
  • 31

15 30 50 per page
1
2 3 4 5
14