[R] cat in a subroutine
Steven Yen
@tyen @end|ng |rom ntu@edu@tw
Thu Oct 13 11:18:27 CEST 2022
No. I just run the subroutine containing those line, with result going to destination go probit1.r.me.it and printed it.
Steven from iPhone
> On Oct 13, 2022, at 5:09 PM, Jim Lemon <drjimlemon using gmail.com> wrote:
>
> Have you assigned the valuie of goprobit1.r.me.kr to "fortytwo", or
> indeed anything?
>
> Jim
>
>> On Thu, Oct 13, 2022 at 8:02 PM Steven T. Yen <styen using ntu.edu.tw> wrote:
>>
>> Not really.
>>
>> fortytwo<-42
>> cat("\nMarginal and Discrete Effects of Gen Ordered Logit / Probit
>> Probabilities",
>> "logisitic =",fortytwo,"\n")
>>
>>> goprobit1.r.me.kr<-me.gologit.r(goprobit1,embellished=TRUE,
>> + resampling=TRUE,ndraws=5);
>> goprobit1.r.me.kr
>> Error in cat("\nMarginal and Discrete Effects of Gen Ordered Logit /
>> Probit Probabilities", :
>> unused arguments (fortytwo, "\n")
>>
>>> On 10/13/2022 4:46 PM, Jim Lemon wrote:
>>> Hi Steven & Erin,
>>> This works:
>>>
>>> fortytwo<-42
>>> cat("\nMarginal and Discrete Effects of Gen Ordered Logit / Probit
>>> Probabilities","logisitic =",fortytwo,"\n")
>>> j<-grep(".one\\b",c(".one\\a",".one\\b"))
>>>
>>> Marginal and Discrete Effects of Gen Ordered Logit / Probit
>>> Probabilities logisitic = 42
>>>
>>> If I don't define fortytwo before calling cat, it doesn't.
>>> So we know what the answer is.
>>>
>>> Jim
>>>
>>> On Thu, Oct 13, 2022 at 7:36 PM Steven Yen <styen using ntu.edu.tw> wrote:
>>>> t<-abs(me)/se; p<-2*(1-pt(t,nrow(x)))
[[alternative HTML version deleted]]
More information about the R-help
mailing list