Displaying 6 results from an estimated 6 matches similar to: "Multiple Stripcharts"
2007 Jul 13
1
how to create matrix in a loop
Hi all,
How does one create a matrix of values in a loop. For example, I have 46*70
matrix with columns giving the values for some blood tests performed upon
the 46 patients(rows). I want to perform a simple test of normality
(shapiro-wilk test) upon each of the biochemical tests for the 46
patients. Can somebody suggest the syntax for such a loop. For the data x, I
wrote the following loop which
2007 Jun 26
2
how to iterate
for the following example dataset:-
Category Variable 1 127 1 261 1 142 1 183 1 234 1 162 2 173 2 321 2 168 2
197 2 213 2 261 3 198 3 126 3 167 3 154 3 134 3 187 3 109 3 210
I have performed Anova on the measured variable (column#2) for the groups
1,2&3 (column#1). Now I want to randomize the values in C#2 and reperform
the test, say, a hundred times. Please suggest a way for this
2007 Jun 23
1
warning in a loop
hi all,
I have a matrix with first column having some measurable values, these are
indexed by the numerals 1,2 and 3 in the other columns of the data and may
be interpreted as values for categories 1,2 and 3.
I have written the following loop
t<-1:10
for(i in 1:10)
+ {
+ k[i]<-d[(d[,(i+1)]%in%1),1]
+ p[i]<-d[(d[,(i+1)]%in%2),1]
+ t[i]<-t.test(k[i],p[i])$p.value
+ }
Error in
2004 Nov 09
2
Multiple stripcharts using "for loop"
Hi
I'm able to create multiple plots from a dataset using a "for loop" to
change variables, but when I try with stripchart it doesn't work.
Standard boxplot:
for(i in 2:14){boxplot(klk[,i]~Group,main=colnames(klk)[i])
Stripchart:
for(i in 2:14){stripchart(klk[,i]~Group,main=colnames(klk)[i])
gives:Error in plot.window(xlim, ylim, log, asp, ...) :
need finite xlim
2006 Nov 08
1
Trying to create multiple stripcharts
Hi everybody,
I'm a new member of the list. I'm just starting to use R.
I'm looking for information about stripcharts. I didn't find a lot on the web. Outside http://www.maths.lth.se/help/R/.R/library/graphics/html/stripchart.html there isn't much I found.
I'm trying to create three vertical stripcharts "glued" to one another. I succeeded to create one
2001 Jan 16
4
[OT] getting a ~ character in LaTeX
I am writing course notes in LaTeX. In the part where I am describing
model-fitting functions in R I want to use a ~ character inline. If I
am displaying an example of R code in its own environment I use the
alltt environment, which protects the ~ character. I have forgotten
how to protect the ~ when I am writing something like
The operator `~' is used to define a model formula in \R.