..@sapo.pt
To: kristi.glo...@hotmail.com
CC: r-help@r-project.org
Subject: Re: [R] how to assing unique ID in a table and do regression
Hello,
Try the following.
id.groups <- with(dat, cut(ID, breaks=0:ceiling(max(ID
sp <- split(dat, id.groups)
regressors <- grep("en", na
Hello,
Try the following.
id.groups <- with(dat, cut(ID, breaks=0:ceiling(max(ID
sp <- split(dat, id.groups)
regressors <- grep("en", names(dat))
models <- lapply(sp, function(.df)
lapply(regressors, function(x) lm(.df[["S"]] ~ .df[[x]])))
mod.summ <- lapply(models, function(x) lapply(
Hi R- User
I have very big data set (5000 rows). I wanted to make classes based on a
column of that table (that column has the data which is continuous .) After
converting into different class, this class would be Unique ID. I want to run
regression for each ID.
For example I have a data set
>
3 matches
Mail list logo