Displaying 20 results from an estimated 26 matches for "iv2".
Did you mean:
i32
2009 Aug 19
2
lmer with random slopes for 2 or more first-level factors?
...t-level factors (IVs). Say there are 2 such independent
variables that I am interested in. What is the proper syntax to fit a
mixed-effects model with a by-subject random intercept, and by-subject
random slopes for both the 2 IVs?
I can think of at least two possibilities:
lmer(DV ~ IV1 + IV2 + (1 + IV1 + IV2 | Subject))
lmer(DV ~ IV1 + IV2 + (1 + IV1 | Subject) + (1 + IV2 | Subject))
Or maybe there is some other way to do it? Maybe the correct syntax
depends on whether the random effect of subjects on the intercept and
slopes are correlated or not? (If so, how do I proceed?)
F...
2009 Feb 10
2
Mixed ANCOVA with between-Ss covariate?
...OVA.
However the output confuses me; why does the covariate only appear in
the first strata? Presumably it should appear in every strata in which
there can be between-Ss effects or interactions with between-Ss
effects, no?
#generate data
set.seed(1)
a=rbind(
expand.grid(
id=1:20
,iv1 = 1:2
,iv2 = 1:2
)
)
a$group = factor(a$id<11)
a$dv = rnorm(length(a[,1]))
a$covariate = NA
for(i in unique(a$id)){
a$covariate[a$id==i]= rnorm(1)
}
#make sure id, iv1, and iv2 are factorized
a$id=factor(a$id)
a$iv1=factor(a$iv1)
a$iv2=factor(a$iv2)
#run ANCOVA
covariate_aov = aov(dv~covariate+group*iv...
2017 Sep 15
2
IVUsers pass is fragile. Is this okay? How can it be resolved?
...selistorder directive is uncommented
---
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1"
target triple = "x86_64-unknown-linux-gnu"
define void @test(i64 %v1, i32 %v2, i64* %addr) {
entry:
br label %loop
loop:
%iv = phi i64 [%v1, %entry], [%iv.inc, %loop]
%iv2 = phi i32 [%v2, %entry], [%5, %loop]
%0 = trunc i64 %iv to i32
%1 = sub i32 %iv2, %0
%2 = sitofp i32 %1 to double
%3 = sub i64 0, %iv
%4 = trunc i64 %3 to i32
%5 = sub i32 %1, %4
%iv.inc = add i64 %iv, 1
store i64 %iv.inc, i64* %addr, align 8
br i1 undef, label %loop, label %exit
exit:
r...
2009 Nov 06
2
Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
Hello everyone,
I have tried to look for this everywhere and so far have no luck. I have a
plotMeans(DV, IV1, IV2, error.bars="se") graph that plots my data
(DV-continuous, IVs are factors, IV1 - two levels, IV2-four levels). I am
trying to increase a scale of my y-axis (to be consistent with my other
graphs), but unfortunately nothing works with "plotMeans" function, which is
the only one...
2017 Sep 14
2
IVUsers pass is fragile. Is this okay? How can it be resolved?
...selistorder directive is uncommented
---
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1"
target triple = "x86_64-unknown-linux-gnu"
define void @test(i64 %v1, i32 %v2, i64* %addr) {
entry:
br label %loop
loop:
%iv = phi i64 [%v1, %entry], [%iv.inc, %loop]
%iv2 = phi i32 [%v2, %entry], [%5, %loop]
%0 = trunc i64 %iv to i32
%1 = sub i32 %iv2, %0
%2 = sitofp i32 %1 to double
%3 = sub i64 0, %iv
%4 = trunc i64 %3 to i32
%5 = sub i32 %1, %4
%iv.inc = add i64 %iv, 1
store i64 %iv.inc, i64* %addr, align 8
br i1 undef, label %loop, label %exit
exit:
r...
2017 Sep 16
0
IVUsers pass is fragile. Is this okay? How can it be resolved?
...ot;
>>>>>
>>>>> define void @test(i64 %v1, i32 %v2, i64* %addr) {
>>>>> entry:
>>>>> br label %loop
>>>>>
>>>>> loop:
>>>>> %iv = phi i64 [%v1, %entry], [%iv.inc, %loop]
>>>>> %iv2 = phi i32 [%v2, %entry], [%5, %loop]
>>>>> %0 = trunc i64 %iv to i32
>>>>> %1 = sub i32 %iv2, %0
>>>>> %2 = sitofp i32 %1 to double
>>>>> %3 = sub i64 0, %iv
>>>>> %4 = trunc i64 %3 to i32
>>>>> %5 = sub...
2000 Jan 19
1
Potentially serious (but rare) issue with buffer.c and cipher.c
...cipher.c
===================================================================
RCS file: /usr/local/cvs/openssh/cipher.c,v
retrieving revision 1.7
diff -u -r1.7 cipher.c
--- cipher.c 2000/01/17 17:27:31 1.7
+++ cipher.c 2000/01/19 07:18:49
@@ -45,16 +45,16 @@
{
des_cblock iv1;
- memcpy(&iv1, iv2, 8);
+ memmove(&iv1, iv2, 8);
des_cbc_encrypt(src, dest, len, ks1, &iv1, DES_ENCRYPT);
- memcpy(&iv1, (char *)dest + len - 8, 8);
+ memmove(&iv1, (char *)dest + len - 8, 8);
des_cbc_encrypt(dest, dest, len, ks2, iv2, DES_DECRYPT);
- memcpy(iv2, &iv1, 8); /* Note how iv1...
2011 Feb 03
2
how to read the "Sum Sq" - column from summary.aov()
Dear R-Users,
I have a trivial problem, but extensive googling and ??'ing did not solve it: I want to obtain the sums of squares from a summary.aov() object for later use. Example:
> DV <- rnorm(100)
> IV1 <- as.factor(rep(c("male", "female"), times = 50))
> IV2 <- as.factor(rep(c("young", "old"), times = 50))
>
> summary(aov(DV ~ IV1 * IV2))
Df Sum Sq Mean Sq F value Pr(>F)
IV1 1 0.215 0.21499 0.2277 0.6343
Residuals 98 92.523 0.94411
How can I store the sums of squares in a variab...
2017 Sep 13
2
IVUsers pass is fragile. Is this okay? How can it be resolved?
...selistorder directive is uncommented
---
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1"
target triple = "x86_64-unknown-linux-gnu"
define void @test(i64 %v1, i32 %v2, i64* %addr) {
entry:
br label %loop
loop:
%iv = phi i64 [%v1, %entry], [%iv.inc, %loop]
%iv2 = phi i32 [%v2, %entry], [%5, %loop]
%0 = trunc i64 %iv to i32
%1 = sub i32 %iv2, %0
%2 = sitofp i32 %1 to double
%3 = sub i64 0, %iv
%4 = trunc i64 %3 to i32
%5 = sub i32 %1, %4
%iv.inc = add i64 %iv, 1
store i64 %iv.inc, i64* %addr, align 8
br i1 undef, label %loop, label %exit
exit:
r...
2013 Jun 23
1
2SLS / TSLS / SEM non-linear
Dear all, I try to conduct a SEM / two stage least squares regression with
the following equations:
First: X ~ IV1 + IV2 * Y
Second: Y ~ a + b X
therein, IV1 and IV2 are the two instruments I would like to use. the
structure I would like to maintain as the model is derived from economic
theory. My problem here is that I have trouble solving the equations to get
the reduced form so I can run the tsls function of the...
2012 May 19
3
anovas ss typeI vs typeIII
...ust to learn R and then check them on SPSS to make sure that I am doing fine. Here is the problem that I've run into:
when we use the aov function, it uses SS Type I as default (on SPSS it is Type III). Then I used the Anova function under cars package using the command:
mod <- lm(DV
~ IV1*IV2, data = mydata,
contrasts=list(IV1=contr.sum,
IV2=contr.sum))
Anova(mod, type=”3”)
Above, both of my IVs are between-SS variables. But still, results from this model do not match the results from SPSS (I have to say they are not too different either). But I was wondering if I am doing something wr...
2005 Jul 07
1
multivariate regression using R
Does anyone know if there is a way to run multivariate linear regression
in R? I tried using the lm function (e.g., lm(dv1, dv2~iv1+iv2+iv3),
but got error messages. Is my syntax wrong, or do I need a particular
package?
Thanks,
Jeff--
________________________________________________________
Jeffrey J. Lusk, Ph.D.
Postdoctoral Research Associate
Department of Forestry & Natural Resources and
Purdue and Climat...
2008 Jun 22
1
two newbie questions
...ny more variables, but this is a
reasonable approximation of it)
# here's a fabricated data frame that is similar in form to mine:
my.df <- data.frame(replicate(10, round(rnorm(100, mean=3.5, sd=1))))
var.list <- c("dv1", "dv2", "dv3", "iv1", "iv2", "iv3", "iv4", "iv5",
"intv1", "intv2")
names(my.df) <- var.list
# I have some are DVs:
dvs <- c("dv1", "dv2", "dv3")
# some IVs:
ivs <- c("iv1", "iv2", "iv3", "iv4&qu...
2013 Jan 10
0
Wald test for comparing coefficients across groups
...thin the same regression. What I am interested is to compare the coefficients of the same IVs across three regressions and across three groups.
Some basic information about my model/design:
My model includes 2 fixed factors (task, group) and 5 more IVs of interest.
Choice ~ Task * Group + IV1 + IV2 + IV3 + IV4 + IV5
I established that the Task * Group interaction is significant (by running two models of a regression, one comparing a model with and one without the interaction term) and I am interested to explore group differences within each task
in a separate logistic regression. Task has...
2008 Sep 25
2
levelplot/heatmap question
Hello!
I have data containing a large number of probabilities (about 60) of nonzero
coefficients to predict 10 different independent variables (in 10 different
BMA models). i've arranged these probabilities in a matrix like so:
(IV1) (IV2) (IV3) ...
p(b0) p(b0) p(b0)
p(b1) p(b1) p(b1)
p(b2) p(b2) p(b2)
...
where p(b1) for independent variable 1 is p(b1 != 0) (given model uncertainty -
using the BMA package). i've also set it so that if the coefficient is
negative, the probability is listed as nega...
2008 Nov 11
1
simulate data with binary outcome and correlated predictors
...(corrHealthy,nbX,nbX)
diag(sigma0)<-1
sigma1<-matrix(corrSick,nbX,nbX)
diag(sigma1)<-1
dataHealthy<-mvrnorm(N*(1-propSick),c(0,0,0),sigma0)
dataSick<-mvrnorm(N*propSick,c(1,1,1),sigma1)
dataS<-as.data.frame(matrix(0,ncol=4,nrow=N))
dimnames(dataS)[[2]]<-c("IV1","IV2","IV3","DV")
dataS$DV[1:(N*propSick)]<-1
dataS$DV<-factor(dataS$DV)
dataS[1:(N*propSick),1:3]<-dataSick
dataS[(N*propSick+1):N,1:3]<-dataHealthy
_____________
thanks in advance for any suggestions,
************************************
Delphine Courvoisier
C...
2001 Nov 13
2
des_ssh1_setiv not setting the IV ?
...t ivlen)
{
memset(cc->u.des.iv, 0, sizeof(cc->u.des.iv));
}
This doesn't use the *iv parameter. Compare with:
static void
des3_setiv(CipherContext *cc, const u_char *iv, u_int ivlen)
{
memset(cc->u.des3.iv1, 0, sizeof(cc->u.des3.iv1));
memset(cc->u.des3.iv2, 0, sizeof(cc->u.des3.iv2));
memset(cc->u.des3.iv3, 0, sizeof(cc->u.des3.iv3));
if (iv == NULL)
return;
memcpy(cc->u.des3.iv3, (char *)iv, 8);
}
which *does* use the *iv parameter. (Though, not quite how I expected it
to be used.. :)
I'll b...
2008 Aug 22
1
filtering out data
...e correct syntax for doing the same thing in R.
I have successfully converted Stata datasets, merged, aggregated, run lm, etc., but this simple task is evading me entirely.
Here's what I have tried (and various iterations):
if(merged.dataset$model1 == 1) model1.coeff <- lm(dv ~ iv1 + iv2 + iv3, data = merged.dataset)
I get this:
Warning message:
In if (merged.dataset$model1 == 1) model1.coeff <- lm(dv ~ iv + :
the condition has length > 1 and only the first element will be used
What it seems to do is just run lm on the first opportunities of model1==1, but then doesn't...
2002 Jan 04
1
plotting missing data patterns
...matrix, color-coding the plot with contrasting
colors for either missing or present.
So far, I have fumbled my way through parts of it but I can't figure out
what I am doing wrong. Here is my situation....
Dataset...now sorted the way I want it (thanks)
> newcouple
id age sex iv1 iv2 dv mdpf
2 0 0 0 0 0 0 1
3 0 0 0 0 0 0 1
5 0 0 0 0 0 0 1
7 0 0 0 0 0 0 1
9 0 1 0 0 0 0 3
6 0 0 1 0 0 0 5
10 0 0 0 1 0 0 9
1 0 0 0 0 1 0 17
4 0 0 0 0 0 1 33
8 0 0 0 0 0...
2011 Apr 18
1
regression and lmer
...dependent variable (DV) is a continuous measure.
The independent variables (IVs) are a mixture of linear and categorical
variables.
The
author investigates whether performance (DV - continuous linear) is a
function of age (continuous IV1 - measured in years), previous
performance (continuous IV2), country (categorical IV3 - six countries), the percentage of PhD graduates in each country (continuous IV4 -
country level data - apparently only six different percentages since we
have only six countries) and population of country (continuous IV5 - country level data - again only six numbers h...