Displaying 7 results from an estimated 7 matches for "var12".
Did you mean:
var1
2012 Apr 19
2
suggested method to transform list to a matrix
I have data in the following list format:
USER,VARIABLE,COUNT
user1, var1, 3
user1, var2, 4
user2, var1, 7
userN, var12, 5
And would like to have it format as a matrix:
var1 var2 var12
user1 3 4
user2 7
userN 5
What is the suggested method to do this for 1 million rows, with 12 variables and ~ 4,000 unique users?
Thank you,
Tim Stutt
tim@ischool.berkeley.edu
[[alternative HTML version deleted]]
2010 Sep 30
1
Several Lattice plots in one Plot
...diagrams in one plot/window using lattice. Two columns, six rows. I used print with the split command, but the graphics are getting really small. Can someone please help me.
Following data example:
dta = data.frame(
day=c(1,2,3,4,5,6,7),
var11=c(1,2,2,4,5,3,2),
var12=c(1,2,2,4,5,3,2),
var13=c(1,2,2,4,5,3,2),
var14=c(1,2,2,4,5,3,2),
var15=c(1,2,2,4,5,3,2),
var16=c(1,2,2,4,5,3,2),
var17=c(1,2,2,4,5,3,2),
var18=c(1,2,2,4,5,3,2),
var19=c(1,2,2,4,5,3,2),
var10=c(1,2,2,4,5...
2004 Jan 08
1
(no subject)
...s by an example;
> dim(a)
[1] 270 14
> dim("a")
NULL
> names(a)
[1] "Var1" "Var2" "Var3" "Var4" "Var5" "Var6" "Var7" "Var8" "Var9"
[10] "Var10" "Var11" "Var12" "Var13" "Var14"
> names("a")
NULL
I realise that the character string lacks both a dimension and any column names; my question is how to make R understand that I look for the object a when I write "a".
Like a type cast in C; (R data.frame) &qu...
2004 Jan 08
0
(no subject)
...0 14
> > dim("a")
> NULL
>
> > names(a)
> [1] "Var1" "Var2" "Var3" "Var4" "Var5" "Var6" "Var7"
> "Var8" "Var9"
> [10] "Var10" "Var11" "Var12" "Var13" "Var14"
> > names("a")
> NULL
>
> I realise that the character string lacks both a dimension
> and any column names; my question is how to make R understand
> that I look for the object a when I write "a".
>
> Like...
2010 Jun 16
0
biglm.big.matrix: Problem with weighting
...y(biglm)
help(read.big.matrix)
NIKA <- read.big.matrix("G:\\VAR.dat", header=TRUE, type="double",
sep="\t")
Reg <- biglm.big.matrix(formula = LAannualisiert ~ 0 + VAR01 + VAR02 +
VAR03 + VAR04 + VAR05 + VAR06 +
VAR07 + VAR08 + VAR09 + VAR10 + VAR11 + VAR12 + VAR13 +
VAR14 + VAR15 + VAR16 + VAR17 + VAR18 + VAR19 +
VAR21 + VAR22 + VAR23 + VAR24 + VAR25 + VAR26 + VAR27 +
VAR28 + VAR29 + VAR30 + VAR31 + VAR32 + VAR33 + VAR34 +
VAR35 + VAR36 + VAR37 + VAR38 + VAR39, weights = ~Gewicht , data =
NIKA)
summary(Reg)
Best regards form g...
2011 Jun 16
0
lmer: How to plot a spline from function
...do a GAM with binomial link function, random
effects (for individuals as there are severeal measurements for everyone)
and a time-spline.
For this purpose I used the lmer-function from lme4 package.
My code looks like this:
mod <- lmer(aim ~ bs(time) + var1 + var2 + factor(var3) +... +factor(var12)
+ (1|ID) ,family=binomial(link = "logit"), data=data)
It works, but what I also want to do is plotting the time-spline, and I just
can't find out how to do this.
I also tried a gamm4 and a amer function, but I think they can't handle all
the NA-values in the dataset as I...
2012 Sep 27
1
List of Variables in Original Order
I am trying to Sweave the output of calculating correlations between one
variable and several others. I wanted to print a table where the
odd-numbered rows contain the variable names and the even-numbered rows
contain the correlations. So if VarA is correlated with all the variables in
mydata.df, then it would look like
var1 var2 var3
corr1 corr2 corr3
var4 var5