Skip to content

Error: One or more series in data is missing observations for one or more timepoints #62

Discussion options

You must be logged in to vote

Thanks @purtyboiii for clarifying and for posting the data, this is helpful for debugging. You will need to widen your data so that you can use values of the other genera as predictors of your focal genus. I show below how you might go about doing this:

library(mvgam)
library(dplyr)

# Read in the data
data_train <- read.csv('APANB_train.csv', as.is = TRUE)
data_test <- read.csv('APANB_test.csv', as.is = TRUE)

# Ensure each series (bioreactor level) is included via
# an appropriate indicator, and convert to factor; also ensure
# that values of the other genera can be used as predictors of the
# outcome of interest (Alkanindiges) by spreading into their own columns
data_train %>%
  mutate(b…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@SamuelBeauregard
Comment options

Comment options

You must be logged in to vote
2 replies
@SamuelBeauregard
Comment options

@nicholasjclark
Comment options

Answer selected by SamuelBeauregard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
data configurations Issues / requests that centre around data structuring for mvgam
2 participants