similar to: generate a series of fucntion

Displaying 20 results from an estimated 2000 matches similar to: "generate a series of fucntion"

2009 Apr 14
1
mean fold change issues and p values
I am new to R and have two scripts written slightly different but should to relatively the same thing but my lack of experience with the program I can not figure out the what I need to do to correct it. The first script gives me a consistent mean fold change values with every run but can generate negative p values for some. For the second version of the script, the fold changes seem to be very
2004 Jul 21
2
nonparametetric bivariate regression
Hi there, Does R has built-in codes for nonpara. bivariate regression so that I can estimate the joint distribution of two variables as a function of some covariates? Thanks a lot. --------------------------------------------------- Ximing Wu Department of Economics University of Guelph Guelph, Ontario, Canada, N1G 2W1 Tel: (519) 842-4120, ext 53014 Fax: (519) 763-8497 email: xiwu at
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
2003 Jul 30
1
compile c code from R
Hi, Can I turn my R code automatically into C? If yes, how can I do that? Do I benefit by doing it? (I know I can do this in matlab and it increases the speed when there is a lot of looping...) thanks a lot. x.w ------------------------ Ximing Wu Department of Economics University of Guelph Guelph, ON, N1G 2W1 Canada Tel: (519) 824-4120 ext. 53014 Fax: (519) 763-8497 email: xiwu at uoguelph.ca
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
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
2011 Apr 25
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
hi all, i would like insert a fucntion call at the end of each basic bloc the fucntion i have defined and declared at the begining of the module ie i have written a pass derived from a module pass virtual bool runOnModule(Module & M){ // i declared the fucntion and defined it for (Module::iterator a = M.begin(), b = M.end(); a != b; for (Function::iterator i = a->begin(), e =
2011 Apr 25
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/25 Duncan Sands <baldrick at free.fr> > Hi Nabila, > > > i would like insert a fucntion call at the end of each basic bloc > > you can't, because only terminators are allowed at the end of a basic > block. > However you can try to insert the call before the terminator. > Yes, i mean before the termininator, My problem is how to call a method suppose
2011 Apr 25
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > My problem is how to call a method > suppose this fucntion > void A(int x) > { > x=x+1; > > } > > should i define this function and declare it at the beginig of the module and > create for it a basic bloc? you can just declare the function (i.e. no need to give it a body), and call it. You can then link with an object file that defines it. This is
2011 Apr 25
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > i would like insert a fucntion call at the end of each basic bloc you can't, because only terminators are allowed at the end of a basic block. However you can try to insert the call before the terminator. ... > i tried to see an example with the demo, i saw that it instead of calling the > function, it repeats all the instruction that are existing in the function >
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/26 Duncan Sands <baldrick at free.fr> > Hi Nabila, > > > Now when i tried this pass an error says: >> Wrong type for attribute noalias >> tail call void @consume(i32 noalias 3, i32* @y) nounwind >> > > noalias is only for arguments of pointer type. You probably meant it to > be on the second argument rather than the first. I suggest you
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > Now when i tried this pass an error says: > Wrong type for attribute noalias > tail call void @consume(i32 noalias 3, i32* @y) nounwind noalias is only for arguments of pointer type. You probably meant it to be on the second argument rather than the first. I suggest you correct your code that adds the attribute. Ciao, Duncan.
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > Now when i tried this pass an error says: > Wrong type for attribute noalias > tail call void @consume(i32 noalias 3, i32* @y) nounwind > > > noalias is only for arguments of pointer type. You probably meant it to > be on the second argument rather than the first. I suggest you correct > your code that adds the attribute.
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
I have defined the fucntion in another object file and linked it to the in fact the fucntion is : void consume(int , int * ); std::vector<Value*> int32_16_params; int32_16_params.push_back(inValue);//inValue is ConstantInt* inValue int32_16_params.push_back(gvar_int32_y); CallInst* int32_16 = CallInst::Create(func_consume, int32_16_params.begin(), int32_16_params.end(), "",
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
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
2000 Nov 14
3
import data from splus
hi there, anybody knows how to import data into R from splus directly? I have a huge amount of data in splus format, which will cost forever for me to transform the data back to ascii or something else and then read them into R. thanks a lot. ximing -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
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
2016 Apr 08
5
how to manually specify domain controllers
We have two Samba 4.2.3 servers with FreeRadius to authenticate wireless users against active directory. Using DNS, sometimes both servers end up using the same domain controller to authenticate users. I would like to distribute the load to different DCs. Is there a way to manually point Samba to certain DCs? I tried the following configuration: security = ads password server =
2009 Jun 10
0
smooth.spline() fucntion
Hi, all, I found that the smooth.spline() function produces different results between R and S-Plus. I was trying to play different parameters of the function without any success. The script of the function contains Fortran code, so it seems impossible to port the code from S-Plus to R (or I may be wrong). Can anyone suggest anything so that I can produce the same result in R as in S-plus? Thanks