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

Discuss the jamovi platform, possible improvements, etc.
Post Reply
arshishad
Posts: 11
Joined: Sat Nov 27, 2021 12:53 am
Location: Patna Bihar India
Contact:

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

Post 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!
User avatar
jonathon
Posts: 2838
Joined: Fri Jan 27, 2017 10:04 am

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

Post 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
Post Reply