Displaying 2 results from an estimated 2 matches for "sitepos".
Did you mean:
site's
2011 Jul 16
1
Creating composite factor and changing format from character to factor
Dear Help-list, I have a dataframe containing 6 variables, 4 of which are factors, 2 numeric. I want to create another factor variable (SitePos) by combining 2 existing factors (Site and Position). I have tried a number of approaches based on trolling the R FAQs, various R webpages, etc., none of which work. One approach e.g. Data1$SitePos <- paste(Data1$Site, Data1$Position) creates the appropriate "SitePos" values e.g. &qu...
2011 Jul 18
1
Multiple comparison test on selected contrasts
...Help-list, How can I do a multiple comparison test (mct) on selected contrasts from a linear model while using packages lme4 and multcomp? I am running R 2.13.0 under Windows 7. The following linear model and mct produces a global mct of 15 paired contrasts of the combined (Site, Position) factor SitePos of which only 9 are of interest. Model.G = lmer(log10(SrCa) ~ SitePos + (1 | Eel), data = Data1)
Model.G.mct = glht(Model.G, linfct = mcp(SitePos = "Tukey"))summary (Model.G.mct) The following code creates the desired reduced set of contrasts but I have been unable to apply it correctly...