similar to: Vector elements and ratios

Displaying 20 results from an estimated 12000 matches similar to: "Vector elements and ratios"

2006 Jan 17
6
For each element in vector do...
Dear R useRs, I have a vector with positive and negative numbers: A=c(0,1,2,3,0,4,5) Now if i-th element in vector A is > 0, then i-th element in vector B is a+1 else i-th element in vector b=a (or 0) vector A: 0 1 2 3 0 4 5 vector B: 0 2 3 4 0 5 6 What's the right way to do this. I still have some problems with for and if statements... Cheers, Andrej
2006 Jan 25
3
read.table problem
Dear R useRs, I have big (23000 rows), vertical bar delimited file: e.g. A00001|Text a,Text b, Text c|345 A00002|Text bla|456 ... .. . Try using A <- read.table('filename.txt', header=FALSE,sep='\|') process stop at line 11975 with warning message: number of items read is not a multiple of the number of columns I have no problems with processing similar file, which is
2006 Jan 28
1
Regex question
Dear R useRs, is there any simple, build in function to match specific regular expression in data file and write it to a vector. I have the following text file: *NEW RECORD *ID-001 *AB-text *NEW RECORD *ID-002 *AB-text etc. Now I have to match all ID fields and print them to a vector: 001 002 etc. I know that this is very simple with Perl or R-Perl interface, but if possible, I want to do
2007 Jun 25
3
How to shadow 'power' area?
Dear all, Suppose I plot two normal distributions (A and B) side by side and add vertical line which hipotheticaly represent alpha value; e.g.: x <- seq(-3.5,5, length=1000) y <- dnorm(x) # Plot distribution A plot(y~x, type='l',axes=F,xlab="",ylab="",lwd=2) # Plot distribution B y2 <- dnorm(x-1.5) lines(y2~x,lwd=2) # Plot vertical line for alpha value
2010 Feb 08
3
Hypercube in R
Dear all, Does anybody have an idea or suggestion how to construct (plot) 4-dimensional hypercube in R. Thanks in advance for any pointers. Regards, Andrej
2011 Nov 14
2
Checkinstall and R-2.14.0
Dear all, I try to install the latest R version using checkinstall (v. 1.6.2) on Ubuntu 11.10. After solving all the dependencies (installed using apt-get build-dep r-base) checkinstall fails to build and install R package with the following error (the same commands build and install R-2.13.2 on the same machine without any problem): wget
2008 Sep 18
2
Ability estimates for partial credit model
Dear all, I'm working on ability estimates using Rasch model. Using the "ltm" package, the procedure is quite simple: ## Factor Scores for the Rasch model fit <- rasch(LSAT) factor.scores(fit) What about Partial Credit Model (PCM)? For PCM I use PCM function from eRm package. Is there any similar function like factor.scores to estimate ability scores using PCM model? Best,
2006 Apr 24
1
rmeta: forest plot problem
Der useRs, I'm working on meta analysis using rmeta package. Using code below I plot the forest plot: library(rmeta) data (catheter) a<-meta.MH (n.trt, n.ctrl, col.trt, col.ctrl, data=catheter, names=Name, subset=c(13,6,5,3,7,12,4,11,1,8,10,2)) summary(a) # odds ratio values and confidence intervals metaplot(a$logOR, a$selogOR, nn=a$selogOR^-2,a$names, summn=a$logMH, sumse=a$selogMH,
2006 Jan 15
1
Multiple comparison and two-way ANOVA design
Dear useRs, I'm working on multiple comparison design on two factor (2 3 levels) ANOVA. Each of the tests I have tried (Tukey, multcomp package) seem to do only with one factor at a time. fm1 <- aov(breaks ~ wool * tension, data = warpbreaks) tHSD <- TukeyHSD(fm1, "tension", ordered = FALSE) $tension diff lwr upr p adj M-L -10.000000 -19.35342
2006 Jan 16
1
Problem with plot()
Dear R useRs, I have a problem to add title to the following graphics; Tukey=TukeyHSD(aov(CA~C), "C",ordered=TRUE)) plot (Tukey, main="My first graph") actually, it draw a graph, but it also display: parameter "main" could not be set in high-level plot() function. If I execute: plot(rnorm(1000),main="My first plot"), no error occur. What's the
2017 Nov 09
2
samba_kcc RODC failes with NT_STATUS_ACCESS_DENIED
Hello Rowland, of course it will be started by samba, I saw this output if I run "samba -i". But I can trigger this output also by starting samba_kcc manually. Andrej -----Ursprüngliche Nachricht----- Von: Rowland Penny [mailto:rpenny at samba.org] Gesendet: Donnerstag, 9. November 2017 14:04 An: samba at lists.samba.org Cc: Andrej Gessel <Andrej.Gessel at janztec.com>
2017 Mar 31
2
possible memory leak in ldb module while dbcheck on RODC
Hai Andrej, Oeps, Sorry, my mistake 4.6.x needs at least 1.1.29. But you can upgrade to 4.6.x ;-) Check again and if that problem then still exists, then i think you can better ask this one in the samba-technical list. Or if Rowland knows something more about this. One tip, wait untill tomorrow or the weekend, there wil be a new release due to the regression bug. There planning is to be
2003 Oct 08
3
2 questions regarding base-n and identifing digits
Dear listers, I have two questions: (1) Is there a way in R to change the base-n of the calculations. I wnat to run some calculations either in binary (base-2) or base-4. Is there a way to specify that in R - to chnage from the decimal? (2) I also want to extract the digits from a larger number and store them as a vector. I could do it through converting top string, parsing the string and
2003 Sep 30
2
FW: error predicting values from the LME
HI all, I might add some more information in order to possibly solve my problem. I'm really stuck and no obvious solutions do the trick. I'm using R 1.7.1 on Windows 2000 with the packages regurarly updated. I'm using hypothetical data constructed as a pseudo population conforming to a certain Var-Cov structure. I might add that just > predict(level2) works. But when I add the
2003 Feb 07
1
a question regarding s-plus libraries and R
Hi! I am a relatively new user of R and I use it to prepare my dissertation. I have come to some very usefull and specific libraries written for S-PLUS 4 and would like to use them in R. Is that possible? I just found out that one of these libraries has already been transfered to R, while 3 others have not. For the matter of beeing more exact I''m interested in the dealing with missing
2003 Sep 06
1
automatic model specification
Dear listers, I must first say that all the suggestions and help I got from the list so far was of great help to my work. I approach you with another question. Is it possible to generate an automatic specification of the formula for lme (or other models in R)? Let me clarify. I'm using models in a simulation run and can have variable number of variables in the data. I would like to generate
2017 Nov 09
2
samba_kcc RODC failes with NT_STATUS_ACCESS_DENIED
Hello list, I run 2 Samba 4.7.1 RODCs. One in my Default-First-Site-Name and in additional Site where only Samba RODC exists. When I start samba_kcc on first RODC it run’s without errors. If I start samba_kcc on RODC in additional Site it fails with: /usr/local/samba/sbin/samba_kcc: Traceback (most recent call last): /usr/local/samba/sbin/samba_kcc: File
2019 Nov 20
1
Dovecot can't log in Virtual user - please help
Hello Actually im not using PAM at all. So yes its true i could drop that. But i see that you have put additional empty double colons in your passwd file which i didn't. So maybe this is the issue? I will try. Thank you ________________________________ From: Aki Tuomi <aki.tuomi at open-xchange.com> Sent: Tuesday, November 19, 2019 10:49 PM To: Andrej Rehak <andrej.rehak at
2017 Nov 28
2
Should Samba-tool RODC preload be run periodically?
Hello list, I run “samba-tool rodc preload” for multiple users. If one of this users change his password, should I repeat the preload call? (I suppose yes, I need to rerun) If I need to rerun samba-tool, can user login with his old password till its expire? (I suppose yes?) Thank you. ----------------------------------------------------------------------------------------------------------
2011 Apr 16
1
"chan_sip.c: No such host:" but I can resolve it from command line ?
Hi, I have Asterisk 1.4.10 under LMCE (upgrade is not an option) and have this strange error appearing in full log : [Apr 16 14:35:48] NOTICE[10802] chan_sip.c: -- Registration for 'NUMBER at voip.siol' timed out, trying again (Attempt #22) [Apr 16 14:35:48] WARNING[10802] chan_sip.c: No such host: voip.siol [Apr 16 14:35:48] WARNING[10802] chan_sip.c: Probably a DNS error for