really just need help with reshaping the data frame
I think I had some success with the melt
x
=
melt
.data
.frame(bsub,id.vars=c("name","nLevel","emot"),measure.vars=c("wrist"))
But I can't figure out the cast to get the wrist values in the r
Hi,
is there an easy way to get the calculated weights in a regression equation?
for e.g.
if my model has 2 variables 1 and 2 with coefficient .05 and .6
how can I get the computed values for a test dataset for each coefficient?
data
var1,var2
10,100
so I want to get .5, 60 back in a
rent length!")
y=x*betasy}# outcome for beta1=0.05 and
beta2=0.6t(apply(X,1,outcome,betas=c(0.05,0.6)))# outcome for beta1=5 and
beta2=6
t(apply(X,1,outcome,betas=c(5,6)))
HTH,JorgeOn Mon, Jul 7, 2008 at 7:56 PM, DS <[EMAIL PROTECTED]> wrote:
Hi,
is there an easy way to get the c
th(x)nb=length(betas)
if(length(x)!=length(betas)) betas=c(betas, rep(val,k-nb))
y=x*betasy}# beta1=1, beta2=2, the rest is equal to
zerot(apply(X,1,outcome,betas=c(1,2),val=0))# beta1=0.5, beta2=0.6, the rest is
equal to 1
t(apply(X,1,outcome,betas=c(1,2),val=1))
HTH,JorgeOn Mon,
h(x)!=length(betas)) betas=c(betas, rep(val,k-nb))
y=x*betasy}# beta1=1, beta2=2, the rest is equal to
zerot(apply(X,1,outcome,betas=c(1,2),val=0))# beta1=0.5, beta2=0.6, the rest is
equal to 1
t(apply(X,1,outcome,betas=c(1,2),val=1))
HTH,JorgeOn Mon, Jul 7, 2008 at 8:57 PM, DS <[EMAIL
461 0.8622042 0.9188022 0.7679693 0.4374419 0.3286095
0.4855927 D;C;A3 0.21682341 0.6340134 0.8565582 0.4694962 0.1333981
0.3136783 0.8458447 0.2518280 C;A:B;B4 0.41367653 0.9285181 0.1878657
0.2405839 0.9860239 0.9522856 0.6081945 0.2897776 E;F;B
HTH,JorgeOn Tue, Jul 8, 2008 at 8
Hi,
1) I have noticed that when I use the aggregate function it outputs numbers
in the results. for example:
aggregate by product
group.1 Aggregate
1ProductA 1000400.00
2ProductB 23232323.00
3Missing 232323.00
is there a way to suppress the numbers infront of ag
Hi,
I have some queries that I use to get time series information for 8
seperate queries which deal with a different set of time series each.
I take my queries run them and save the output as csv file and them format
the data into graphs in excel.
I wanted to know if there is an elegant
8 matches
Mail list logo