Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in R Programming by (50.2k points)

I want to implement the following code, but I am getting some error:


> 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?

1 Answer

0 votes
by (108k points)

For fixing that in R programming, you just need to install the multcomp package as this is considered as the best advert for namespacing.

Browse Categories