search for: parseformula

Displaying 4 results from an estimated 4 matches for "parseformula".

2005 Aug 16
2
problem using model.frame()
...;t. It would be good if model.frame could cope with data.frames in formulae, but seeing as I am incapable of providing a patch, is there a way around this problem? Below is the head of the function I am currently using, including the function for parsing the formula - borrowed and hacked from ordiParseFormula() in package vegan. I can work out the class of the rhs of the forumla. Is there a way to create a suitable environment for the data argument of parseFormula() such that it contains the rhs dataframe coerced to a matrix, which then should get through model.frame.default without error? How would I...
2004 Jul 16
3
Strange (non-deterministic) problem with strsplit
I'm having an odd problem with strsplit (well I think it's strplit that's causing the problem). When I run the code below as follows: str(parseFormulaMin(y +x +d ~ b +d +e| a * b)) I expect to get List of 3 $ y: chr "y+x+d" $ x: chr "b+d+e" $ g: chr "a*b" But about half the time I get List of 3 $ y: chr "y+x+d" $ x: chr "b+d+e" $ g: chr "a*[square box]" (square box not reproduc...
2004 Jul 16
3
Strange (non-deterministic) problem with strsplit
I'm having an odd problem with strsplit (well I think it's strplit that's causing the problem). When I run the code below as follows: str(parseFormulaMin(y +x +d ~ b +d +e| a * b)) I expect to get List of 3 $ y: chr "y+x+d" $ x: chr "b+d+e" $ g: chr "a*b" But about half the time I get List of 3 $ y: chr "y+x+d" $ x: chr "b+d+e" $ g: chr "a*[square box]" (square box not reproduc...
2004 Apr 19
0
Seeking help with multcomp
...ed. Any help would be much appreciated. > pairwise.t.test(q12a, quota, p.adj = "fdr") $method [1] "t tests with pooled SD" $data.name [1] "q12a and quota" $p.value 1 2 3 4 5 6 7 8 9 2 4.805732e-09 NA NA NA NA NA NA NA NA > simtest(q12a ~ quota) Error in parseformula(formula, data, subset, na.action, whichf, ...) : at least one factor required > simtest(q12a ~ factor(quota)) Error in parse(file, n, text, prompt) : parse error > simtest(q12a ~ factor(quota),na.action=na.exclude) Error in parse(file, n, text, prompt) : parse error Greg Blevins Par...