Displaying 8 results from an estimated 8 matches for "termtext".
2018 Mar 23
1
restricted cubic spline in FGR function
Dear Thomas,
I want to use evaluate effect of Age using restricted cubic form in the FGR function as
Fgr.crr <- FGR(Hist(time, event) ~ rcs(Age_years), data=dat)
It provides error. " Error in parse(text = termtext, keep.source = FALSE): .... 1: response ~ rcs(Age_years
Do I need to change any of the R code?
Regards
Amalraj Raja
The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. SC013683.
[[alternative...
2019 Mar 29
2
Bug in the "reformulate" function in stats package
...))
I would be happy to give it a shot if the consensus is that it would
be worthwhile.
One workaround to the OP's problem is below (may be worth including
as an example in docs)
> z <- c("a variable","another variable")
> reformulate(z)
Error in parse(text = termtext, keep.source = FALSE) :
<text>:1:6: unexpected symbol
1: ~ a variable
^
> reformulate(sprintf("`%s`",z))
~`a variable` + `another variable`
On 2019-03-29 11:54 a.m., J C Nash wrote:
> The main thing is to post the "small reproducible example".
>
&...
2019 Apr 04
2
Bug in the "reformulate" function in stats package
...;
> Martin
>
> > One workaround to the OP's problem is below (may be worth including
> > as an example in docs)
>
> >> z <- c("a variable","another variable")
> >> reformulate(z)
> > Error in parse(text = termtext, keep.source = FALSE) :
> > <text>:1:6: unexpected symbol
> > 1: ~ a variable
> > ^
> >> reformulate(sprintf("`%s`",z))
> > ~`a variable` + `another variable`
>
>
>
>
> > On 2019-03-29 11:54 a.m., J C Na...
2019 Apr 04
0
Bug in the "reformulate" function in stats package
...nd my vote, we have a 100% consensus
;-)]
Martin
> One workaround to the OP's problem is below (may be worth including
> as an example in docs)
>> z <- c("a variable","another variable")
>> reformulate(z)
> Error in parse(text = termtext, keep.source = FALSE) :
> <text>:1:6: unexpected symbol
> 1: ~ a variable
> ^
>> reformulate(sprintf("`%s`",z))
> ~`a variable` + `another variable`
> On 2019-03-29 11:54 a.m., J C Nash wrote:
>> The main thing is to post t...
2019 Apr 18
3
Bug in the "reformulate" function in stats package
...the OP's problem is below (may be worth including
> >> > as an example in docs)
> >>
> >> >> z <- c("a variable","another variable")
> >> >> reformulate(z)
> >> > Error in parse(text = termtext, keep.source = FALSE) :
> >> > <text>:1:6: unexpected symbol
> >> > 1: ~ a variable
> >> > ^
> >> >> reformulate(sprintf("`%s`",z))
> >> > ~`a variable` + `another variable`
> >>
&...
2019 Apr 05
0
Bug in the "reformulate" function in stats package
...;> > One workaround to the OP's problem is below (may be worth including
>> > as an example in docs)
>>
>> >> z <- c("a variable","another variable")
>> >> reformulate(z)
>> > Error in parse(text = termtext, keep.source = FALSE) :
>> > <text>:1:6: unexpected symbol
>> > 1: ~ a variable
>> > ^
>> >> reformulate(sprintf("`%s`",z))
>> > ~`a variable` + `another variable`
>>
>>
>>
>...
2019 Apr 18
0
Bug in the "reformulate" function in stats package
...(may be worth
>> including
>> ???? >> > as an example in docs)
>> ???? >>
>> ???? >> >> z <- c("a variable","another variable")
>> ???? >> >> reformulate(z)
>> ???? >> > Error in parse(text = termtext, keep.source = FALSE) :
>> ???? >> > <text>:1:6: unexpected symbol
>> ???? >> > 1:? ~ a variable
>> ???? >> > ^
>> ???? >> >> reformulate(sprintf("`%s`",z))
>> ???? >> > ~`a variable` + `another variable`...
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