Page 1 of 1

Clarification on the Functionality of the MEAN() Function in Compute Variable

Posted: Fri May 16, 2025 8:50 am
by arshishad
Hello,

I am currently working with the compute variable function in jamovi, and I encountered something I need clarification on.

When I create a computed variable using the formula MEAN(BMI), I notice that instead of returning the overall mean of the BMI column, it seems to return the original BMI value row-wise (as shown in the attached screenshot).

I was expecting that using MEAN(BMI) would compute the same mean value across all rows — i.e., the mean of the entire BMI column. However, the output appears to simply replicate the original BMI values.

Could someone please explain the intended utility of the MEAN() function in this context? Is there a specific way to calculate the column-wise (global) mean for use in further computations?

Thank you in advance!

Re: Clarification on the Functionality of the MEAN() Function in Compute Variable

Posted: Fri May 16, 2025 9:18 am
by jonathon
take a look at the following blog post. look at the section on 'V' functions:

https://blog.jamovi.org/2017/11/28/jamovi-formulas.html

jonathon