I want to implement the following code, but I am getting some error:
library(multcompView)
> library(lsmeans)
> lsmeans = lsmeans::lsmeans ### Uses the lsmeans function
> leastsquare = lsmeans(model,
+ "B_exp_type",
+ adjust="tukey")
NOTE: Results may be misleading due to involvement in interactions
> cld(leastsquare,
+ alpha=.05,
+ Letters=letters)
Error in cld(leastsquare, alpha = 0.05, Letters = letters) :
could not find function "cld"
How to fix this error?