Displaying 5 results from an estimated 5 matches for "visual52".
Did you mean:
visual
2006 Jan 30
5
Help with R: functions
Hello R-users
I am new to R and trying to write some functions. I have problems writing functions that takes a data set as an arguement and uses variables in the data. I illustrate my problem with a small example below:
sample data #------------------
visual24<-rnorm(30,3,5)
visual52<-rt(30,7)
dats<- data.frame(cbind(visual24,visual52))
remove(visual24, visual52)
# first code
#--------------
st <-function(data,x,y){
rcc<-coef(lm(y~x))
plot(x,y)
abline(rcc[1],rcc[2])
}
st(data=dats,x=dats$visual24,y=dats$visual52)
This code works fine, b...
2006 Mar 07
1
lme and gls : accessing values from correlation structure and variance functions
...ied accessing these values i obtained the following
bm$modelStruct
corStruct parameters:
[1] -1.394879
varStruct parameters:
[1] 0.5680815
What do these values represent.
Thanks in advance..
Pryseley
sample data:
RowNames Trial subject VISUAL0 TRT VISUAL24 VISUAL52 TREAT outcome endpoint trt
4 1 1003 65 4 65 55 2 0 1 1
8 1 1007 67 1 64 68 2 -3 1 -1
12 2 1110 59 4 53 42 2 -6 1 1
14 2 1111 64 1 72...
2006 Mar 03
1
Help with lme and correlated residuals
...a way of getting pass this restriction ?
In essence, I wish to know how to fit a linear mixed model with correlated residuals (based on a variable in my model) and to obtain the correlation matrix.
Best regards
Pryseley
Sample data:
RowNames Trial subject VISUAL0 TRT VISUAL24 VISUAL52 TREAT outcome endpoint trt
4 1 1003 65 4 65 55 2 0 1 1
8 1 1007 67 1 64 68 2 -3 1 -1
12 2 1110 59 4 53 42 2 -6 1 1
14 2 1111 64 1 72...
2006 Mar 02
0
Help with lme code
...rrect this code.
Does this imply that the grouping factor in the correlation formula must be the same grouping factor in the random formula ? If so, is there a way of getting pass this restriction ?
Best regards
Pryseley
Sample data:
RowNames Trial subject VISUAL0 TRT VISUAL24 VISUAL52 TREAT outcome endpoint trt
4 1 1003 65 4 65 55 2 0 1 1
8 1 1007 67 1 64 68 2 -3 1 -1
12 2 1110 59 4 53 42 2 -6 1 1
14 2 1111 64 1 72...
2006 Mar 08
0
survival
...ied accessing these values i obtained the following
bm$modelStruct
corStruct parameters:
[1] -1.394879
varStruct parameters:
[1] 0.5680815
What do these values represent.
Thanks in advance..
Pryseley
sample data:
RowNames Trial subject VISUAL0 TRT VISUAL24 VISUAL52 TREAT outcome
endpoint trt
4 1 1003 65 4 65 55 2 0 1
1
8 1 1007 67 1 64 68 2 -3 1
-1
12 2 1110 59 4 53 42 2 -6 1
1
14 2 1111 64 1 72 65...