0

I have the result of code:

results$love <- cycle_fn(answers_clean$lovehate, function(x) {
  x %>%
    summarise(
      n = sum(group_modality != "neutral"),
      positive = sum(group_modality == "positive"),
      negative = sum(group_modality == "negative"),
      .groups = "drop"
    ) %>%
    mutate(ci.index(positive, negative))
})

result:

n=11,positive =3,negative=8,index.mean = 0.272, index.lower=0.1278, index.upper=0.489.

I try to understand the formula inside the ci.index(positive,negative) and how the values index.lower and index.upper calculates? I understand that ci function is similar to t.test but what is inside? positive is just like 1,1,1 and negative is -1,-1,..

MrFlick
  • 178,638
  • 15
  • 253
  • 268
Mister X
  • 11
  • 1
  • It's easier to help you if you provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input that can be used to test and verify possible solutions. What package are you using? `ci.index` is not a base R functon. – MrFlick May 20 '22 at 17:59

0 Answers0