Displaying 20 results from an estimated 79 matches for "y6".
2008 Jan 02
1
WG: AW: Another problem with encoding
Hello, Peter,
I tried it out: iconv(names(attributes(spss[,'Y6'])[[1]][14]), "UTF-8", "LATIN1", sub='byte') yielded
[1] "<c4>rzte Chirurgie"
and c4 corresponds in most encodings to ?. What can I do next? I wonder whether there is a more comfortable way then to change the
occurences of <..> by the adequa...
2008 May 14
2
mfrow
...ends, line types) to be
scale down (resized proportionally).
As an illustration, below is the code:
pdf("testmfrow.pdf")
par(mfrow=c(4,2))
x<-seq(1:10)
y1<-rnorm(10)
y2<-rnorm(10,mean=2,sd=1)
y3<-rnorm(10,mean=3,sd=1)
y4<-rnorm(10,mean=4,sd=1)
y5<-rnorm(10,mean=5,sd=1)
y6<-rnorm(10,mean=6,sd=1)
y7<-rnorm(10,mean=7,sd=1)
y8<-rnorm(10,mean=8,sd=1)
plot(x,y1,type='o', lty=1, main="I want this title is to be scaled down
(resized)")
plot(x,y2,type='o', lty=2, main="I want this title is to be scaled down
(resized)")
plot(x,y3,...
2006 Apr 06
4
problem with IE
...// CODE ////
var m = $(''XYZ'').cloneNode(false)
m.setAttribute(''id'', ''XYZ_2'');
m.value = '''';
var onblur = "alert(''hola'');";
m.setAttribute(''onblur'', onblur);
y6.appendChild(m);
//// CODE ////
where "XYZ" is an input text and y6 is a TD cell, this works perfectly in
firefox, but i dont have idea why doesnt work in IE, any clue??
thx in advance :)
--
//
// Ing. Francisco J. Calderón S.
// fjcalderon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
//...
[R-pkgs] New package: `lavaan' for latent variable analysis (including structural equation modeling)
2010 May 24
2
[R-pkgs] New package: `lavaan' for latent variable analysis (including structural equation modeling)
...begin R Code ##
>
> library(lavaan)
>
> # The industrialization and Political Democracy Example
> # Bollen (1989), page 332
>
> model <- '
> # latent variable definitions
> ind60 =~ x1 + x2 + x3
> dem60 =~ y1 + y2 + y3 + y4
> dem65 =~ y5 + y6 + y7 + y8
>
> # regressions
> dem60 ~ ind60
> dem65 ~ ind60 + dem60
>
> # residual correlations
> y1 ~~ y5
> y2 ~~ y4 + y6
> y3 ~~ y7
> y4 ~~ y8
> y6 ~~ y8
> '
>
> fit <- sem(model, data=PoliticalDemocracy)
> sum...
2008 Jan 09
2
labels to values
I couldn't find out how the following to solve:
There is a column in a data.frame:
> d[, 'Y6']
[1] 6 3 8 11 8 9 6 8 3 5 10 15 NA 9 8 3 8 16 6 6 NA 10 5 2 7 7 6 16 7 15 7 10 12 8 7 12 12 16 7 6 8 8
15 6 [45] NA 8 99 7 12 8 9 16 7 16 8 7 7 1 15 12 8 7 10 7 8 7 8 9 8 6 6 8 6 16 11 5 11 11 1 11 3 7 7 10
10 10 6 11 [89] 16 NA 1 3...
2016 Apr 30
4
Removing NAs from dataframe (for use in Vioplot)
...an input CSV with columns off irregular length that contain NAs. I want to strip the NAs out and produce a multiple violin plot automatically labelled using the headers. At the moment I do this
Code:?
ds1 = read.csv("http://www.lecturematerials.co.uk/data/spelling.csv")
library(vioplot)
y6<-na.omit(ds1$y6)
y5<-na.omit(ds1$y5)
y4<-na.omit(ds1$y4)
y3<-na.omit(ds1$y3)
y2<-na.omit(ds1$y2)
y1<-na.omit(ds1$y1)
vioplot(y6, y5, y4,y3,y2,y1,horizontal=TRUE, names=c("Y6", "Y5","Y4","Y3","Y2","Y1"), col = "lightb...
2008 May 24
2
Importing data in text file into R
Dear all,
I am quite new to R; facing certain problems:
Say, I have a text file( named as "try"):
Year C1 C2 C3 C4 C5 C6
Y1 3.5 13.8 9.5 6.8 0.4 24.2
Y2 3.8 13.9 9.9 7.6 0.7 12.8
Y3 4.5 14.5 14.2 9.2 0.6 14.5
Y4 5.9 16.2 24.6 12.7 0.2 24.3
Y5 7.2 20.4 40.6 18.2 0.8 28.2
Y6 5.9 18.6 37.4 14.5 0.3 36.9
Y7 8.0 16.1 88.6 24.1 0.1 34.6
Y8 13.6 21.1 56.3 19.0 0.7 33.3
I wish to import the file into R and make certain
computations, like intercorrelation matrix. I tried
the following syntax:
# Inputting the data file (saved in text format)
df="trial.txt"
idt=read...
2006 Jul 03
6
macro facility in R
...2 on windows XP
I have a dataset with multiple columns. Some of the columns represent
independent variables, some represent dependent variables. I would like
to run the same analyses on a fixed set of independent variables,
changing only the dependent variable, e.g.
y1-y2=x1+x2+x3
y3-y4=x1+x2+x3
y5-y6=x1+x2+x3, etc.
I know I can write a function to perform the analyses, however in order
to make the analyses easy to do, I really need a macro scripting
language that will allow preprocessing of the function and substitution
of macro variables with parameters passed to the macro, i.e. I need
sometin...
2009 Apr 11
2
who happenly read these two paper Mohsen Pourahmadi (biometrika1999, 2000)
...ial design
matirx with level of 11,degree=3
here is my rocode~~
y1=c(1,0.9,0.98,1.06,0.83,1.00,0.41,0.93,1.01,0.86)
y2=c(0.05,0.16,0,0.26,0.15,0.61,0.33,0.31,0.33)
y3=c(-0.23,0,0.16,-0.03,0.22,-0.03,-0.17,-0.05)
y4=c(0.04,-0.21,-0.04,-0.26,-0.03,-0.04,-0.05)
y5=c(-0.02,-0.34,0.06,-0.22,-0.11,-0.31)
y6=c(0.20,0.01,0.01,-0.26,0.01)
y7=c(-0.06,-0.14,0.39,0.23)
y8=c(0.21,0.10,0.09)
y9=c(-0.24,-0.23)
y10=c(0.13)
y=c(y1,y2,y3,y4,y5,y6,y7,y8,y9,y10) ## autoregressive paramters ,table 1
biometrika 1999,page 685
om2=matrix(0,nrow=55,ncol=3)
om1=poly(c(1:10),degree=3) ##polynomial design mati...
2010 May 19
0
New package: `lavaan' for latent variable analysis (including structural equation modeling)
...ow is the full R code for fitting a SEM model:
## begin R Code ##
library(lavaan)
# The industrialization and Political Democracy Example
# Bollen (1989), page 332
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- sem(model, data=PoliticalDemocracy)
summary(fit, fit.measures=TRUE)
## end R code ##
Please feel free...
2011 Apr 27
0
lavaan version 0.4-8
...w is the full R code for fitting a SEM model:
## begin R Code ##
library(lavaan)
# The industrialization and Political Democracy Example
# Bollen (1989), page 332
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- sem(model, data=PoliticalDemocracy)
summary(fit, fit.measures=TRUE)
## end R code ##
Please fee...
2010 May 19
0
New package: `lavaan' for latent variable analysis (including structural equation modeling)
...ow is the full R code for fitting a SEM model:
## begin R Code ##
library(lavaan)
# The industrialization and Political Democracy Example
# Bollen (1989), page 332
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- sem(model, data=PoliticalDemocracy)
summary(fit, fit.measures=TRUE)
## end R code ##
Please feel free...
2011 Apr 27
0
lavaan version 0.4-8
...w is the full R code for fitting a SEM model:
## begin R Code ##
library(lavaan)
# The industrialization and Political Democracy Example
# Bollen (1989), page 332
model <- '
# latent variable definitions
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
fit <- sem(model, data=PoliticalDemocracy)
summary(fit, fit.measures=TRUE)
## end R code ##
Please fee...
2012 Nov 19
3
Plot Area Dimensions
Dear colleagues,
I wish to create a figure with 6 plots arranged vertically with no spacing
between them as they all have a common x-axis.
However, using the code below I'm unable to get the plot area the same size
for each plot.
The bottom plot with the x-axis label is smaller than the others, as is the
top plot which has larger margins.
How can I get the plot region the same size for
2002 Aug 20
2
Reset par(xaxp) in plot
...elpers;
This seems simple to set graphic parameter, but I tried plot a graph
with 10 intervals in x axis with par(xaxp = c(0, 150, 10) but to no avail:
par(xaxp =c (0, 150, 10))
plot(age, y18, type="n", ylab="Height (m)", xlab=" age (Yrs)", font
= 2)
lines(age, y6, lty = 4, lwd = 2)
lnes(age, y10, lty = 1, lwd =2)
lines(age, y14, lty = 2, lwd =2)
lines(age, y18, lty = 3, lwd = 2)
abline(v=50)
The plot shown only 3 intervals with tick at 0, 50, 100, and 150. and
> par()$xaxp
[1] 0 150 3
I use current version Lattice and Grid.
> version...
2018 Feb 08
4
plotting the regression coefficients
...ariable (x) along the side and the phenotypes (y) across the
top (as given below). For each data point, direction and magnitude of
effect could be color and significance could be the size of the circle? Is
this possible?
I would greatly be appreciated your help.
Thanks,
Greg
y1 y2 y3 y4 y5 y6
x1
x2
x3
x4
x5
x6
x7
x8
x9
x10
x11
x12
x13
x14
x15
x16
x17
.
.
[[alternative HTML version deleted]]
2011 Aug 25
4
{R} How to extract correctly from vector?
...; "A2" "A3" "A4" "A5" "A6" "A7" "A8" "A9" "A10"
Now assign each element as name for a data frame:
(d <-
data.frame(cbind(X1=1,Y1=1:10,X2=1,Y2=1:10,X3=1,Y3=1:10,X4=1,Y4=1:10,X5=1,Y5
=1:10,
X6=1,Y6=1:10,X7=1,Y7=1:10,X8=1,Y8=1:10,X9=1,Y9=1:10,X10=1,Y10=1:10)))
x <- paste("X",1,sep="")
y <- paste("Y",1,sep="")
for (i in 2:10) {x[i] <- paste("X",i,sep="")
y[i] <- paste("Y",i,sep="")}...
2008 Dec 16
1
surface contour plot help
...;,ylim=c(2001,2008))")
Call rinterface.rrun("plot3d(x,y2,z2,add=TRUE)")
Call rinterface.rrun("plot3d(x,y3,z3,add=TRUE)")
Call rinterface.rrun("plot3d(x,y4,z4,add=TRUE)")
Call rinterface.rrun("plot3d(x,y5,z5,add=TRUE)")
Call rinterface.rrun("plot3d(x,y6,z6,add=TRUE)")
Is thier a way to lay a surface to this?
[[alternative HTML version deleted]]
2018 Feb 08
0
plotting the regression coefficients
...t; top (as given below). For each data point, direction and magnitude of
> effect could be color and significance could be the size of the circle? Is
> this possible?
>
>
> I would greatly be appreciated your help.
>
> Thanks,
>
> Greg
>
>
>
> y1 y2 y3 y4 y5 y6
> x1
> x2
> x3
> x4
> x5
> x6
> x7
> x8
> x9
> x10
> x11
> x12
> x13
> x14
> x15
> x16
> x17
> .
> .
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org...
2018 May 24
0
Manipulation of data.frame into an array
...16 X17 X18 X19 X110 X111 X112 X113 X114
1 2 1 2 1 2 1 2 1 2 1 2 1 2
X115 X116 X21 X22 X23 X24 X25 X26 X27 X28 X29 X210 X211 X212
1 2 0 1 0 1 1 1 0 1 0 1 0 1
X213 X214 X215 X216 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10
1 1 0 1 1 2 3 4 5 6 7 8 1 2
Y11 Y12 Y13 Y14 Y15 Y16
3 4 5 6 7 8
So, e.g. for a 3 column matrix:
> matrix(do.call(c,imp), ncol=3)
[,1] [,2] [,3]
[1,] 1 0 1
[2,] 2 1 2
[3,] 1 0...