calculation of vector of variables

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)

by joshfoster » Mon Apr 19, 2021 3:37 pm

Hi, sorry if I'm missing something obvious, but I cannot figure out how to do a calculation on a vector of variables. For example, say I want to sum together 10 variables called var1, var2, var3...var10. If I use the formula, SUM(var1:var10), I get an error message saying that there is not a variable in the dataset called "var1:var10". I can sum together these variables using the formula, SUM(var1,var2....var10), which is fine for small vectors, but becomes time-consuming when working with lengthy vectors of variables. Am I making a silly mistake or is this perhaps a function that has not yet been added to Jamovi? Thanks so much! I love, love, LOVE Jamovi! -Josh
joshfoster
 
Posts: 1
Joined: Mon Apr 19, 2021 3:27 pm

by jonathon » Tue Apr 20, 2021 4:52 am

hi josh,

sorry, there's no easy way to sum a lot of variables. you unfortunately need to type them out SUM(var1, var2, ... var10).

cheers

jonathon
User avatar
jonathon
 
Posts: 1763
Joined: Fri Jan 27, 2017 10:04 am

by seol » Sun Apr 25, 2021 10:28 pm

You can use snowIRT module for sum scores. snowIRT>Polytomous Rasch model>Save> Total Score

OR Factor>Reliability analysis
Attachments
이미지 2.png
이미지 2.png (23.34 KiB) Viewed 1377 times
seol
 
Posts: 51
Joined: Mon Dec 04, 2017 8:40 am


Return to Help