min_valid=6
Posted: Sat Aug 26, 2023 9:35 am
Hi everyone,
I want to calculate sums in a datasets with some missings. Therefore I'd like to include the missings and calculate a sum even if not all values are present, but at least six out of eight values should be available. I tried min_valid=6, but the dataset is empty.
I'm guessing, min_valid = 6 does not mean that a minimum of six variables must be included, but rather that the sum must be at least six, since I do get a dataset once I put "min_valid = 1". Is that correct and if so is there another possibility to include at least six variables in the sum-calculation?
Can someone help me? (Screenshots attached below)
Thanks in advance!
Pauline
I want to calculate sums in a datasets with some missings. Therefore I'd like to include the missings and calculate a sum even if not all values are present, but at least six out of eight values should be available. I tried min_valid=6, but the dataset is empty.
I'm guessing, min_valid = 6 does not mean that a minimum of six variables must be included, but rather that the sum must be at least six, since I do get a dataset once I put "min_valid = 1". Is that correct and if so is there another possibility to include at least six variables in the sum-calculation?
Can someone help me? (Screenshots attached below)
Thanks in advance!
Pauline