Displaying 1 result from an estimated 1 matches for "ndifference".
Did you mean:
difference
2023 Oct 24
1
by function does not separate output from function with mulliple parts
...{
fit0<-lm(as.numeric(HipFlex) ~ jSex,data=x)
print(summary(fit0))
cat("\nMale\n")
print(contrast(fit0,
list(jSex="Male")))
cat("\nFemale\n")
print(contrast(fit0,
list(jSex="Female")))
cat("\nDifference\n")
print(contrast(fit0,
a=list(jSex="Male"),
b=list(jSex="Female")))
}
################################
# END Define function to be run#
################################
#########################################
# Run function within le...