Displaying 5 results from an estimated 5 matches for "groc".
Did you mean:
gro
2024 Sep 22
1
store list objects in data.table
...only", and so forth. Also
note that individual components of nested lists can be extracted by
giving a vector to [[ instead of repeated [['s. For example:
result[[2]][[2]] ## the reg component of the degree 2 polynomial
## is the same as
result[[c(2,2)]] ## this is a bit easier for me to groc.
Again, feel free to ignore without replying if my gratuitous remarks
are unhelpful.
Cheers,
Bert
On Sat, Sep 21, 2024 at 2:25?PM Naresh Gurbuxani
<naresh_gurbuxani at hotmail.com> wrote:
>
> I am trying to store regression objects in a data.table
>
> df <- data.frame(x = r...
2024 Sep 22
2
store list objects in data.table
.... Also
> note that individual components of nested lists can be extracted by
> giving a vector to [[ instead of repeated [['s. For example:
> result[[2]][[2]] ## the reg component of the degree 2 polynomial
> ## is the same as
> result[[c(2,2)]] ## this is a bit easier for me to groc.
>
> Again, feel free to ignore without replying if my gratuitous remarks
> are unhelpful.
>
> Cheers,
> Bert
>
>
> On Sat, Sep 21, 2024 at 2:25?PM Naresh Gurbuxani
> <naresh_gurbuxani at hotmail.com> wrote:
>> I am trying to store regression objects in a d...
2012 Nov 25
3
Comparing linear regression coefficients to a slope of 1
Hi!
I have a question that is probably very basic, but I cannot figure out how
to do it. I simply need to compare the significance of a regression slope
against a slope of 1, instead of the default of zero.
I know this topic has been posted before, and I have tried to use the
advice given to others to fix my problem. I tried the offset command based
on one of these advice threads as follows:
2012 Aug 21
2
define subset argument for function lm as variable?
Hi
I want to do a series of linear models, and would like to define the input arguments for lm() as
variables. I managed easily to define the formula arguments in a variable, but I also would like to
have the "subset" in a variable. My reasoning is, that I have the subset in the results object.
So I wiould like to add a line like:
subs <- dead==FALSE & recTreat==FALSE
which
2024 Sep 21
3
store list objects in data.table
I am trying to store regression objects in a data.table
df <- data.frame(x = rnorm(20))
df[, "y"] <- with(df, x + 0.1 * x^2 + 0.2 * rnorm(20))
mydt <- data.table(mypower = c(1, 2), myreg = list(lm(y ~ x, data = df),
lm(y ~ x + I(x^2), data = df)))
mydt
#?? mypower??? myreg
#???? <num>?? <list>
#1:?????? 1 <lm[12]>
#2:?????? 2 <lm[12]>
But mydt[1, 2]