Displaying 6 results from an estimated 6 matches for "4.4029e".
Did you mean:
4.4029
2024 Jul 12
2
grep
Thanks. In this case below, what is "x"? I tried rownames(out) which did
not work.
Sorry. Does this sound like homework to you?
On 7/12/2024 5:09 PM, Uwe Ligges wrote:
>
>
> On 12.07.2024 10:54, Steven Yen wrote:
>> Below is part a regression printout. How can I use "grep" to identify
>> rows headed by variables (first column) with a certain label. In
2024 Jul 12
1
grep
Below is part a regression printout. How can I use "grep" to identify
rows headed by variables (first column) with a certain label. In this
case, I like to find variables containing "somewhath",
"veryh",?"somewhatm", "verym", "somewhatc", "veryc","somewhatl",
"veryl". The result should be an index 6:13 or
2024 Jul 12
1
grep
On 12.07.2024 10:54, Steven Yen wrote:
> Below is part a regression printout. How can I use "grep" to identify
> rows headed by variables (first column) with a certain label. In this
> case, I like to find variables containing "somewhath",
> "veryh",?"somewhatm", "verym", "somewhatc", "veryc","somewhatl",
2024 Jul 12
1
grep
Could not get "which" to work, but my grep worked. Thanks.
> which(grep("very|somewhat",names(goprobit.p$est))) Error in
which(grep("very|somewhat", names(goprobit.p$est))) : argument to
'which' is not logical > grep("very|somewhat",names(goprobit.p$est)) [1]
6 7 8 9 10 11 12 13 28 29 30 31 32 33 34 35 50 51 52 53 54 55 56 57
On 7/12/2024
2024 Jul 12
0
grep
Now I've found another way to make it work. All I need is to pick up the
names in the column (x.1.age...).
> v<-pr(goprobit.p); v
Maximum-Likelihood Estimates weighted = FALSE iterations = 5 logLik =
-14160.75 finalHessian = TRUE Covariance matrix is Robust Number of
parameters = 66 Sample size = 17922 est se t p g sig x.1.age 0.0341
0.0138 2.4766 0.0133 -3.8835e-04 ** x.1.sleep
2024 Jul 14
0
grep
Yes. Any of the following worked. The pipe greater than (|>) is neat!
Thanks.
> v<-goprobit.p$est
> names(v) |> grep("somewhat|very", x = _)
?[1]? 6? 7? 8? 9 10 11 12 13 28 29 30 31 32 33 34 35 50 51 52 53 54 55
56 57
> v |> names() |> grep("somewhat|very", x = _)
?[1]? 6? 7? 8? 9 10 11 12 13 28 29 30 31 32 33 34 35 50 51 52 53 54 55
56 57
>