0

I wanted to perform ANOVA on my dataset using rstatix package.

This is the command I used

anova_test(data = light3, dv = gene_copies, wid = ID, within = treatment)

And this is the error it gives me:

Fehler in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 0 (non-NA) cases

My data consists of 4 different groups (treatment, factor class). Per group there are 3x3 values (gene_copies, numeric class). Each value has an individual ID and assigned timepoint (3 values per timepoint, timepoint factor class) in a separate column. There are no NAs in the table and every group+timepoint has 3 values so that everything is balanced out.

I adapted the command from this script: https://www.datanovia.com/en/lessons/repeated-measures-anova-in-r/

My dataset has the exact same structure.

Please help

  • Hi it's not NA thats causing the error but rather some missing values when the wrapper tries to put your data for anova. Can you provide the data using dput(df) and paste the output, or provide a link to the data? – StupidWolf Jun 18 '20 at 08:51
  • I have answered a few questions on this, https://stackoverflow.com/questions/61373813/anova-test-function-error-0-non-na-cases-and-linear-combination-for-two-wa/61376985#61376985 or https://stackoverflow.com/questions/60046993/unable-to-run-two-way-repeated-measures-anova-0-non-na-cases. hopefully one of your issues is similar to that. Post your data somehow – StupidWolf Jun 18 '20 at 08:59

0 Answers0