### Example with formula notation
data(Catbus)
groupwiseHuber(Steps ~ Teacher + Gender,
data = Catbus,
ci.type = "wald")
### Example with variable notation
data(Catbus)
groupwiseHuber(data = Catbus,
var = "Steps",
group = c("Teacher", "Gender"),
ci.type = "wald")
### Example with NA value and without confidence intervals
data(Catbus)
Catbus1 = Catbus
Catbus1[1, 'Steps'] = NA
groupwiseHuber(Steps ~ Teacher + Gender,
data = Catbus1,
conf.level = NA)
Run the code above in your browser using DataLab