search for: cvandi

Displaying 8 results from an estimated 8 matches for "cvandi".

Did you mean: cvandy
2008 Jan 30
4
Loop with variable index
I have a list of 20 values. The first time through a loop I want to find the mean and stnd.dev. of the first two values; the second time through the loop I want to find the mean and stnd. dev. of the first 3 values, etc. until the last time through the loop I want to find the mean and stnd. dev. of all 20 values, so I end up with 19 means and stnd. deviations. How would I construct such a loop?
2009 Jul 08
2
Formatting a Table
I've created a short program to print a table of learning curve factors. However, I cannot figure out how to format the table to: 1) Get rid of the [1]s in the first column and replace it with the values of N. 2) Line up the first row with the factors (decimal fractions). Thanks for any help. The complete program and output is as follows: > Lc<-seq(0.70,0.95,0.05) #Specify learning
2008 Feb 26
4
numeric format
Hi! I'm an R newbie and this should be a trivial problem, but I can't make it work and cannot find what I'm doing wrong in the literature. I entered the the command: table<-data.frame(x, scientific=F, digits=4) table This prints a column of x with 16 useless decimal places after the decimal point. Also, it prints an unwanted index number (1-20) in the left column. How do I get rid
2008 Jan 28
1
R loops
I'm a new user and am having trouble with loops. In the following, I'm trying to add the results of "test" and the loops are not working. I've simplified the loop. What am I doing wrong? Thanks! > test<-numeric(20) > tot<-numeric(20) > for(i in 1:20){test[i]<-1} > for (i in 1:20){tot[i]<-(test[i]+tot[i])} > tot [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2008 Feb 02
1
Plotting 3 vectors on one graph.
I'm an R newbie and am trying to plot 3 vectors, say a,b,c. I have downloaded 3 R manuals and searched your forum. There are plenty of X vs Y examples, but cannot find how to plot 3, or more vectors one one graph. I'm sure I overlooked something. Thanks for any help. CHV -- View this message in context: http://www.nabble.com/Plotting-3-vectors-on-one-graph.-tp15236552p15236552.html
2009 May 17
1
One Sample Nonparametric
Hi! I'm doing one and two sample nonparametric tests for the median using wilcox test. For a one-sample test I use: > wilcox.test(x, mu =50 (or whatever), y=NULL,correct=TRUE) For two-sample test I use: > wilcox.test(x,y,correct=TRUE) The problem is when I try to duplicate problems from textbooks, I get p-values that are much different from the examples from the literature. They are
2009 May 19
1
Wilcoxon nonparametric p-values
When I use wilcox.test, I get vastly different p-values than the problems from Statistics textbooks. For example: The following problem comes from "Applied Statistics and Probability for Engineers", 2nd Edition, by D. C. Montgomery. Page736, problem 14.7. The problem is to compare the sample data with a population median of 8.5. The book answer is p = 0.25, wilcox.test answer is p =
2009 Jul 09
2
How to Populate List
Hi, I'm new to R and would like to know, how one can populate the list with array data. I'm reading a tab separated table in R. The data in the table looks something like this. #Table Data Comp    A    B    C Extracellular    103    268    535759 Nucleus    45603    47783    442744 #R code myData <- read.table("table.data",                 header=T,