Displaying 8 results from an estimated 8 matches for "g_1".
Did you mean:
__1
2009 Apr 14
1
mean fold change issues and p values
...row) #parametric test -- t test
p.wilcox = rep(NA, nrow) #non-parametric test -- Mann-Whitney test
fold.mean <- rep(NA, nrow)
mean.na <- rep(NA, nrow)
mean.nb <- rep(NA, nrow)
sig.peak.all = data.norm.test
g_1 = sig_test[1]
g_2 = sig_test[2]
col_s1 = 1; col_s2 = 1;
for(i in 1:group){
if(i < g_1)
col_s1 = col_s1+group_size[i]
if(i < g_2)
col_s2 = col_s2+group_size[i...
2003 Jul 21
4
generate a series of fucntion
Hi there,
I want to generate a large amount of functions,
say f=function(x,t) exp(-t[1]-t[2]*g_1(x)-t[3]*g_2(1+x))
where g_1(x) and g_2(x) are from a long list of moments, such as x, x^2,
log(x), log(1+x) .. and so on.
Any suggestions on how to do this efficiently?
thanks a lot.
x.w
2010 Oct 08
3
Efficiency Question - Nested lapply or nested for loop
My data looks like this:
> data
name G_hat_0_0 G_hat_1_0 G_hat_2_0 G_0 G_hat_0_1 G_hat_1_1 G_hat_2_1 G_1
1 rs0 0.488000 0.448625 0.063375 1 0.480875 0.454500 0.064625 1
2 rs1 0.002375 0.955375 0.042250 1 0.000000 0.062875 0.937125 2
3 rs2 0.050375 0.835875 0.113750 1 0.877250 0.115875 0.006875 0
4 rs3 0.000000 0.074750 0.925250 2 0.897750 0.102000 0.000250 0...
2008 Aug 18
2
use expression() in a loop
Hi all,
I want to do plot() in a loop to make 10 graphs, so I have some code like
for (i in 1:10) {
plot(... ... , xlab = expression(g[i]) )
}
I expect g_1, g_2, and so on appear on x labels, but it simply prints
g_i for each graph. Does anybody know how to get around this problem?
Thanks.
NL
2007 Jan 22
1
eval() parse() and problem with square brackets
Hello,
i have problem with the following code (I'm using sqlQuery function from
RODBC package):
eval(parse(text="g_1 <- sqlQuery(cnn_1, \"select aa from
bb.[cc\\dd].ee\")")).
I get the error message:
"[RODBC] ERROR: Could not SQLExecDirect"
"S0002 208 [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object
name 'bb.cc\dd.ee'."
It seems that R is replacing...
2007 Jan 22
1
eval() parse() and problem with square brackets
Hello,
i have problem with the following code (I'm using sqlQuery function from
RODBC package):
eval(parse(text="g_1 <- sqlQuery(cnn_1, \"select aa from
bb.[cc\\dd].ee\")")).
I get the error message:
"[RODBC] ERROR: Could not SQLExecDirect"
"S0002 208 [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object
name 'bb.cc\dd.ee'."
It seems that R is replacing...
2009 Apr 08
0
Comparing Proportions Among Groups
Hi everyone,
I am trying to compare proportions among groups using the logistic
regression
approach as follows:
1) Fit the model log(p_i/(1-p_i)) = M + G_i, where p_i is the probability
of success in group i and G_i is the effect of group i, i=1,..,I.
2) Test the hypotheses:
Ho: G_1 = G_2 = ... = G_I (the probability of success is the same for all
groups)
versus
Ha: at least two G_i's are different (at least two groups have different
probabilities of success)
I am wondering if there any R functions available for accomplishing these
tasks.
Using dummy variables is on...
2001 Sep 11
2
Differential Equations Using R?
To whom it may concern,
I am a student at Macaleste College, and next semester Macalester
is going to offer a course for CellBio that is mainly statistically based.
For the most part the students will be using R for analysis. The problem is
there will be some simple differential equations for the students to solve.
The committee that in charge of the classes corriculam would like only to