Displaying 2 results from an estimated 2 matches for "b1_1".
Did you mean:
b11
2011 Jul 20
3
Grouping columns
...t;Z:/int/xyz.csv", header=TRUE)
>
> #Teilmengen f?r die Einzeljahre generieren
> b1<-subset(b,jahr=="2007")
> b2<-subset(b,jahr=="2008")
> b3<-subset(b,jahr=="2009")
>
> #tapply f?r die Einzeljahre auf die jeweilige BranchenID
> b1_1<-tapply(b1$betriebs_id,b1$umweltkompartiment,length)
> b1_2<-tapply(b2$betriebs_id,b2$umweltkompartiment,length)
> b1_3<-tapply(b3$betriebs_id,b3$umweltkompartiment,length)
>
> #Verbinden der Ergebnisse
> b11<-rbind(b1_1,b1_2,b1_3)
> Gesamt<-apply(X=b11,MARGIN=1, s...
2006 Nov 15
3
how to create this design matrix?
Hi all,
I have a multiple-linear regression problem.
There are 13 columns of data, the whole data matrix is: n x 13, where n is
the number of samples.
Now I want to regress EACH of the first 12 columns onto the 13th column,
with 2-parameter linear model y_i = b0 + b1 * x_i, where i goes from 1 to
n, and b0 is the intercept.
How do I create a design matrix to do the 12-column regression