Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What if I need subgroup identifiers with repeating groups of a certain size?

0
10 Posted

What if I need subgroup identifiers with repeating groups of a certain size?

0
10

A spreadsheet formula can generate a repeating identifier variable of a certain size. For example, the formula: =v0-n*trunc((v0-1)/n) where n is the maximum group size, can be used to generate a variable with codes up to that size. For example, when n=4, then the following values (codes) of the grouping variable will be generated: 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4,… When I use the Case Weights option, I do not believe the results are correct. Case Weights must be integers. If the variable chosen as the weighting variable is a non-integer number it will be truncated to become an integer. The Case Weights option treats values of a selected variable as integer case multipliers when processing the data.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123