similar to: loop in R

Displaying 20 results from an estimated 6000 matches similar to: "loop in R"

2006 Nov 21
2
Symbolic derivation using D in package stats - how do I properly convert the returned call into a character string?
Dear all, I am using the function 'D' in the 'stats' package to perform symbolic derivation. This works very well and it is much faster than e.g. Mathematica (at least for my purposes). First, I would like to thank the development team for this excellent function. However, I run into trouble in some cases, particularly when I am to do some operations on long expressions
2012 Mar 22
1
Simalteneous Equation Doubt in R
Hi List l am interested in developing price model. I have found a research paper related to price model of corn in US market where it has taken demand & supply forces into consideration. Following are the equation: Supply equation: St= a0+a1Pt-1+a2Rt-1+a3St-1+a5D1+a6D2+a7D3+U1 -(1) Where D1,D2,D3=Quarterly Dummy Variables(Since quarterly data are considered) Here, Supply
2009 May 15
1
data summary and some automated t.tests.
I would like to preform a t.test to each of the measured variables (sand.silt etc.) with a mean and sd for each of the treatments (up or down), and out put this as a table.... I am having a hard time starting- maybe it is to close to lunch. Any suggestions would be greatly appreciated. Stephen Sefick x <- (structure(list(sample. = structure(c(1L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 2L, 3L,
2008 Nov 17
0
Error while running virt-install
Hi All I need some real help in using virt-install. I have a fedora8 o/s + Xen installed and wanted to have RHEL4 as the Guest Domain. I have mounted the CD1 of RHEL4 and wanted to install this as guest domain using virt-install and not able to do and seeking help. Please let me know if the parameters to virt-install are correct and if not please let me know the correct parameters. Contents of
2008 Nov 18
0
Fw: Error while running virt-install
Any help is greatly appreciated.   Thanks Chandra Sekhar --- On Sun, 11/16/08, Chandra Sekhar <sekhar_15@yahoo.com> wrote: From: Chandra Sekhar <sekhar_15@yahoo.com> Subject: [Xen-users] Error while running virt-install To: xen-users@lists.xensource.com Date: Sunday, November 16, 2008, 11:23 PM Hi All I need some real help in using virt-install. I have a fedora8 o/s + Xen
2009 Jul 25
1
Determine the dimension-names of an element in an array in R
Hi: How can I extract the dimension-names of a pre-defined element in a multidimensional array in R ? A toy example is provided below: I have a 4-dimensional array with each dimension having certain length. In the below example, "mydatastructure" explains the structure of my data. mydatastructure = array(0, dim=c(length(b),length(z),length(x),length(d)), dimnames=list(b,z,x,d)) where,
2007 Mar 27
7
Replacement in an expression - can't use parse()
Dear all, Suppose I have a very long expression e. Lets assume, for simplicity, that it is e = expression(u1+u2+u3) Now I wish to replace u2 with x and u3 with 1. I.e. the 'new' expression, after replacement, should be: > e expression(u1+x+1) My question is how to do the replacement? I have tried using: > e = parse(text=gsub("u2","x",e)) > e =
2011 May 08
2
help with mysql and R: partitioning by quintile
Hi, I have a mysql table with fields userid,track,frequency e.g u1,1,10 u1,2,100 u1,3,110 u1,4,200 u1,5,120 u1,6,130 . u2,1,23 . . where "frequency" is the number of times a music track is played by a "userid" I need to turn my 'frequency' table into a rating table (it's for a recommender system). So, for each user, I need to categorise the frequency of tracks
2011 Jan 27
2
help for a loop procedure
Hello everybody! I’m trying to define the optimal number of surveys to detect the highest number of species within a monitoring season/session. To do this I want to run all the possible combinations between a set of samples and to calculate the total number of species for each combination of 2, 3, 4 …n samples events, so that at the end I will be able to define which is the lowest number of
2012 Feb 11
1
CentOS 6.2: Start and use guest as regular user under qemu-kvm?
Trying to set up a copy of CentOS 6.2 for home use and give each family member their own guest. Goal is to cripple the host so that no meaningful work can be done through it and each family member must use their own guest. "Gold Disk" masters would be kept of each guest, so if they screw it up, I can simply overwrite their current guest from the master. SELinux is enabled and sVirt
2007 Jan 24
1
solving a structural equation model using sem or other package
I am trying to work my way through the book "Singer, JD and Willett, JB, Applied Longitudinal Data Analysis. Oxford University Press, 2003" using R. I have the SAS code and S-Plus code from the UCLA site (doesn't include chapter 8 or later problems). In chapter 8, there is a structural equation/path model which can be specified for the sem package as follows S <- cov(al2)
1999 Sep 27
1
users access rights
Hello, I'm running samba v2.0.5a and I have some problems with settings users access rights to our Projects share. We have a projects share with project directories: \\XX\Projects\P1 ... P5 and 6 people : U1 ... U6 All users must have primary group "users". I need to set permissions for each Px directory and each Ux user. (For ex.: U1,U2 has rwx for P1/* U2,U3,U6 has
2011 Oct 27
2
creating vector os zeros for simulations (beginner's question)
Dear R helpers,   I know this is a simple task, but I'm new to R and I'm still havind difficulties with the language. I want to create 30 vectors to be used in a simulation, each with 1 columm and 5 lines, of random numbers N(0,1). What I tried was this:   N=150 u2<-rep(1:150,0) u2<-list(matrix(0,5)) u2 for(i in 1:N) { u2[i]<-rnorm(5) } u2 ### also tried this: N=150
2010 Jan 19
2
subfolder level restriction
hello I have three users u1 ,u2 and u3 I have a share named "mrt" and it has two subfolder "mrt1" and "mrt2". what i have to do is that when u1 logs in mrt it should view all the contents inside mrt (including contents of its subfolderand all) and when u2 logs into mrt it should view mrt1 and restrict mrt2 and in same way when u3 logs into mrt ,it could access mrt2
2003 Apr 25
4
Kinderman-Ramage (PR#2846)
Hi, Our department has detected a bug in the implementation of the Kinderman-Ramage generator for normal random variates in version 1.7.0, which can be seen from the below R session. (Consecutive calls for chisq.test(...) always gives p-values very close to 0.) We have already encountered this bug in version 1.6.2 The error is in file R-1.7.0/src/nmath/snorm.c Here is a patch for this file to
2011 May 27
1
finding derivative of a data series in R
Dear All, I tried following for getting derivative of a polynomial in R i<- -10:10 x<-i*i*i+3*i*i+2 fun_spline<-splinefun(i,x) plot(x,type="l") lines(x,fx_spline(x, deriv=1), col='green') lines(x,fx_spline(x, deriv=2), col='green') Now when I plot 3*i*i + 6*i and 6*i + 6 the plot was not same for first deivative. where as the 2nd derivative was same Is this a
2010 Oct 07
3
quantile regression
Dear all, I am a new user in r and I am facing some problems with the quantile regression specification. I have two matrix (mresultb and mresultx) with nrow=1000 and ncol=nsim, where I specify (let's say) nsim=10. Hence, the columns in my matrix represents each simulation of a determined variable. I need to regress each column of mresultb on mresultx. My codes are the following:
2004 Sep 09
1
Bug in rsync? (--delete[-after])
Hello! I think I've found a bug in some (older) versions of rsync. The problem does not seem to have been reported at bugzilla. And of the 9 bugs found there by searching on "--delete-after" all have got the name wayned@samba.org attached. I ask you therefore to check if this problem is found in the newest version of rsync as well! I've read the warnings at rsync.samba.org
2011 Oct 09
2
help with statistics in R - how to measure the effect of users in groups
Hi, I'm a newbie to R. My knowledge of statistics is mostly self-taught. My problem is how to measure the effect of users in groups. I can calculate a particular attribute for a user in a group. But my hypothesis is that the user's attribute is not independent of each other and that the user's attribute depends on the group ie that user's behaviour change based on the group. Let
2007 May 03
7
Asterisk-Polycom HELLLLPPP!!!!
PBX: Asterisk 1.4 Phones: PSTN phone connected to TDM400 X-Ten Lite Polycom 430 Scenario Polycom 430 = User1 User2 calls User1(Polycom 430) asks to be transfered to User3 User1 does an attended transfer using the trnsfr button on the polycom User2 is placed in music-on-hold User3s phone rings. (So far so good Right?) User3 picks up the phone to answer User2 only to