similar to: question about for loop

Displaying 11 results from an estimated 11 matches similar to: "question about for loop"

2006 Jun 27
3
looking for a more efficient R code.
Dear R-users I have four simple linear models, which are all in the form of a*X+b The estimated parameter vectors are a <- c(1,2,3,4) b <- c(4,3,2,1) My goal is to draw a plot where x-axis is X (range from -100 to 100) and y-axis is the sum of all four linear models X <- seq(-100,100, length=10000) plot(X, sum of the four linear functions) I started with a function for summing
2009 Feb 13
1
(no subject)
Very quick one please team; How do I return the number of possible unique subsets in a data set (not combinations i.e. not (1,2,3,4) and (4,3,2,1)) please ? e.g. In a list of integers 1 to 12, there is 495 sets with 4 elements in regards glenn [[alternative HTML version deleted]]
2011 Apr 29
1
Conditonal Rank
Suppose I have data such as tmp <- data.frame(score = c(1,2,3,4, 4,3,2,1), trial = gl(2,4), Gender = gl(2,2,8, labels=c('M', 'F'))) Now I would like to compute a rank on the variable score conditional on trial and gender. I could do res <- with(tmp, tapply(score, list(Gender, trial), rank)) res[,1] res[,2] and then finagle a way to create a new variable in the dataframe
2010 Jul 15
1
I can't figure out my plm model. Any ideas?
Dear R users, I am using plm packege in R to build my model, but from the result I can't quite figure out what it is... Can anyone tell me why? Am I missing something? R Results: *> ar1<-plm(formula=ADOP~lag(ADOP,1)+PE+WOR, + data=well, effect="time",model="within") > summary(ar1)* Oneway (time) effect Within Model Call: plm(formula = ADOP ~ lag(ADOP, 1) + PE
2007 Mar 09
1
lpSolve space problem in R 2.4.1 on Windows XP
Hi. I am trying to use the linear optimizer from package lpSolve in R 2.4.1 on Windows XP (Version 5.1). The problem I am trying to solve has 2843 variables (2841 integer, 2 continuous) and 8524 constraints, and I have 2 Gb of memory. After I load the input data into R, I have at most 1.5 Gb of memory available. If I start the lp with significantly less memory available (say 1 Gb), I get
2010 Feb 03
2
How to change output 'csv' file
Dear R helpers   After executing the R code, where the last few lines of the code are something like given below.     ## Part of my R code     n = 20   ........ .........   final_output = data.frame(Numbers = numbers, ABC = data1, XYZ = data2, PQR = data3)           write.csv(data.frame(Scenario = paste("Sc_", 1:n, sep = ""), final_output'), 'result.csv', row.names
2014 Oct 23
1
Auto video call hangup
Hi, I use a simple scheme: SIP video phone A (h264/Asterisk 1.8.11) <---IAX2 trunk----> SIP video phone B (h264/Asterisk 11.7.0) When calls from A to B and vice versa drop on pickup. On B side: [Oct 24 16:33:49] DEBUG[15590][C-00000012] res_rtp_asterisk.c: Setting the marker bit due to a source update [Oct 24 16:33:49] DEBUG[15590][C-00000012] res_rtp_asterisk.c: Setting the marker bit
2015 Jan 19
2
SEMI-OFFTOPIC openvox
Hi list, I write on the list looking for help, buy a openvox gw gsm for four channels and I'm a little disappointed with the support openvox, for some reason , The call doesn?t get trough support tells me it was my asterisk server, but does not really work me and my internal calls are working perfectly, I tested with another sangoma FXO gateway and works perfectly. the problem is that
2001 Nov 10
1
piecewise linear regression
We sent questionnaires to lots of folks. The questionnaires differed in word count (wc). For each questionnaire, I know wc and whether the questionnaire was returned or not (status). It looks like there is a fixed rate of return when wc is below a break point, and the rate of return falls off linearly after that. I want to do a piecewise linear regression with two pieces meeting at a common
2004 Nov 29
0
[newbie] SQUID/SAMBA problems with NTLM_Auth
Hello, I havn't gotten an answer over on the squid usergroup - so I'm hoping someone can help me here. SUSE - 9.1 SQUID - 2.5.STABLE5 SAMBA - 3.0.2a-SUSE (the one that came with SUSE Installer by YAST) I have set up squid, samba, got the winbind to work great Wbinfo -t, -u, -g all work great Squid also worked great until I tried to tie in NTLM_Auth If I authenticate using
2015 Jan 21
0
asterisk-users Digest, Vol 126, Issue 18 mtr
You could use MTR command. Its a trace route improved. Marlon Araujo > On Jan 20, 2015, at 08:59, asterisk-users-request at lists.digium.com wrote: > > Send asterisk-users mailing list submissions to > asterisk-users at lists.digium.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.digium.com/mailman/listinfo/asterisk-users > or,