search for: baixomedio

Displaying 2 results from an estimated 2 matches for "baixomedio".

2008 Feb 20
2
factors ordered by mean
...n to the result to see somethink like this: > levels(pH) [1] "baixo" "medio" "alto" I try this to make a function that I need to get ordered levels by this mean and after rename to make a automatic contrasts by comparing models. > levels(pH)[1] <- "baixomedio" > levels(pH)[2] <- "baixomedio" > levels(pH) [1] "baixomedio" "alto" and after this a make a new model to be compared with a model with 3 levels where "baixo" and "medio" is separated. without ordered levels these command is wrong...
2008 Apr 20
3
Problem with object inside a function
Hi all, I have a problem with an object inside a formula in a function that I make. I create an object named qvartemp. This object is OK, look the levels: > print(levels(qvartemp)) [1] "baixomedio" "alto" Now I create a new object with a new formula: > new.form <- as.formula(gsub(qvar,"qvartemp",as.expression(mma$formula))) Look this new object: > print(new.form) Riqueza ~ Biomassa * qvartemp Now here is the problem, I try to update an existing model (...