Displaying 5 results from an estimated 5 matches for "x212".
Did you mean:
212
2005 Sep 08
5
data manipulation
Dear All,
I would be grateful if you can help me. My problem is the following:
I have a data set like:
ID time X1 X2
1 1 x111 x211
1 2 x112 x212
2 1 x121 x221
2 2 x122 x222
2 3 x123 x223
where X1 and X2 are 2 covariates and "time" is the time of observation and ID indicates the cluster.
I want to merge the above data by creating a new variable "X" and "type&quo...
2018 May 24
0
Manipulation of data.frame into an array
...t a data
frame is also a list and using do.call():
## imp is the data frame:
do.call(c,imp)
X11 X12 X13 X14 X15 X16 X17 X18 X19 X110 X111 X112 X113 X114
1 2 1 2 1 2 1 2 1 2 1 2 1 2
X115 X116 X21 X22 X23 X24 X25 X26 X27 X28 X29 X210 X211 X212
1 2 0 1 0 1 1 1 0 1 0 1 0 1
X213 X214 X215 X216 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10
1 1 0 1 1 2 3 4 5 6 7 8 1 2
Y11 Y12 Y13 Y14 Y15 Y16
3 4 5 6 7 8
So, e.g. for a 3 column matr...
2018 May 24
4
Manipulation of data.frame into an array
Hello everyone,
I want to transform a data.frame into an array (lets call it mydata), where: mydata[[1]] is the first imputed dataset...and for each mydata[[d]], the first p columns are covariates X, and the last one is the outcome Y.
Lets assume a simple data.frame:
Imputed = data.frame( X1 = c(1,2,1,2,1,2,1,2, 1,2,1,2,1,2,1,2),
X2 =
2018 May 24
2
Manipulation of data.frame into an array
...t a data frame is also a list and using do.call():
## imp is the data frame:
do.call(c,imp)
X11 X12 X13 X14 X15 X16 X17 X18 X19 X110 X111 X112 X113 X114
1 2 1 2 1 2 1 2 1 2 1 2 1 2
X115 X116 X21 X22 X23 X24 X25 X26 X27 X28 X29 X210 X211 X212
1 2 0 1 0 1 1 1 0 1 0 1 0 1
X213 X214 X215 X216 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10
1 1 0 1 1 2 3 4 5 6 7 8 1 2
Y11 Y12 Y13 Y14 Y15 Y16
3 4 5 6 7 8
So, e.g. for a 3 column matr...
2001 Nov 14
0
OPEN ssh pkg
...93$@G?8"!]0"&G at 3'4/[
M\BD=)FQ.V_'T%4"'3Q$,S"C\=FMG3'YP8/DUO^='&L> ]#M"&HH(1"^/)+OG
M6T\#46[).\7&#$2"LA <<$LC:9%?H2&$WBQ0V9#D7T at M.&8%L 2&!Q/ Y#CH
MR@&(Q27*=1)EXXT at 8 _87&=J0Y%//F%>HHW2H #.0!X212,N%Q2H.!8LIFDL
ML*4<RL E at TEPJI$$G80#'Y"3'8HW02=5V1\G#07*2L=\3FZLLE',9=4-\@*[
M006L!UPE''05<=+F(HL-)0KN([40.0@( 3PK:($ $V "4E0GEQ_0"3SN)6R9
ME4@ B%( _JF F97F1!-'V:P:XR> /"0 _Q8&S5P7;W:Y(0'L@!W0%OYY: CH
M$-+^>>#K.#:BUVY(9;O!A^J!F%G1...