search for: termlabels

Displaying 8 results from an estimated 8 matches for "termlabels".

2019 Mar 29
2
Bug in the "reformulate" function in stats package
...s of legal R symbols) can be handled by protecting them with backticks (``) ## using non-syntactic names: reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-")) It seems to me there could be room for a *documentation* patch (stating explicitly that if termlabels has length > 1 its elements are concatenated with "+", and explicitly stating that non-syntactic names must be protected with back-ticks). (There is a little bit of obscurity in the fact that the elements of termlabels don't have to be syntactically valid names: many will be inclu...
2019 Apr 04
2
Bug in the "reformulate" function in stats package
...backticks (``) > > > ## using non-syntactic names: > > reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-")) > > > It seems to me there could be room for a *documentation* patch (stating > > explicitly that if termlabels has length > 1 its elements are > > concatenated with "+", and explicitly stating that non-syntactic names > > must be protected with back-ticks). (There is a little bit of obscurity > > in the fact that the elements of termlabels don't have to be &gt...
2019 Apr 04
0
Bug in the "reformulate" function in stats package
...andled by protecting them with backticks (``) > ## using non-syntactic names: > reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-")) > It seems to me there could be room for a *documentation* patch (stating > explicitly that if termlabels has length > 1 its elements are > concatenated with "+", and explicitly stating that non-syntactic names > must be protected with back-ticks). (There is a little bit of obscurity > in the fact that the elements of termlabels don't have to be > syntactic...
2019 Apr 18
3
Bug in the "reformulate" function in stats package
...ng non-syntactic names: > >> > reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-")) > >> > >> > It seems to me there could be room for a *documentation* patch (stating > >> > explicitly that if termlabels has length > 1 its elements are > >> > concatenated with "+", and explicitly stating that non-syntactic names > >> > must be protected with back-ticks). (There is a little bit of obscurity > >> > in the fact that the elements of terml...
2019 Apr 05
0
Bug in the "reformulate" function in stats package
...>> > ## using non-syntactic names: >> > reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-")) >> >> > It seems to me there could be room for a *documentation* patch (stating >> > explicitly that if termlabels has length > 1 its elements are >> > concatenated with "+", and explicitly stating that non-syntactic names >> > must be protected with back-ticks). (There is a little bit of obscurity >> > in the fact that the elements of termlabels don't ha...
2019 Apr 18
0
Bug in the "reformulate" function in stats package
...gt;> ???? >> > reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-")) >> ???? >> >> ???? >> > It seems to me there could be room for a *documentation* >> patch (stating >> ???? >> > explicitly that if termlabels has length > 1 its elements are >> ???? >> > concatenated with "+", and explicitly stating that >> non-syntactic names >> ???? >> > must be protected with back-ticks).? (There is a little bit >> of obscurity >> ???? >> > in the f...
2019 Mar 29
2
Bug in the "reformulate" function in stats package
Well, first I can't sign in bugzilla myself, that is why I wrote here first. Also, I don't know if I have the time at the moment to provide tests, multiple examples or more. If that is not ok or welcomed, that is fine, I can come back, whenever I have more time to properly report the bug. I didn't find the existing bug report, sorry for that. Yes, it is related. My problem was
2011 Sep 20
0
Problems using predict from GAM model averaging (MuMIn)
...E), length=len) newdata$x1 <- nseq(dat$x1, nrow(newdata)) The problem comes in when I try do the following: pred <- cbind(sapply(top.models, predict, newdata=newdata),averaged=predict(model.avg(top.models), newdata)) I get the following error: "Error in reformulate(allNames) : 'termlabels' must be a character vector of length at least one" I think the problem has something to do with the fact that I have used 3 knots in the GAM and therefore I land up with two coefficients for each factor, but I have no idea how to get around this problem. -- Vernon Visser Post-doctoral...