search for: dv

Displaying 20 results from an estimated 747 matches for "dv".

Did you mean: dev
2012 May 11
0
help with SMATR: help with pairwise comparisons using MA regression?
...2 0.23553 RB.2008 RB 0.45788 0.25285 0.34439 0.29447 0.31387 0.27646 0.35218 0.25768 0.84819 0.02119 0.03743 -0.09691 0.20412 RB.2008 RB 0.49831 0.27416 0.31175 0.34439 0.29003 0.35218 0.26007 0.03342 0.0086 -0.09151 0.22531 RB.2008 RB 0.49136 0.26007 0.32634 0.31806 0.2833 -0.00877 0.23045 DV.2009 DV 0.4609 0.23045 0.35984 0.2878 0.26482 0.26482 0.35025 0.26245 0.85248 -0.02228 0.08636 -0.08619 0.23045 DV.2009 DV 0.42488 0.20412 0.32428 0.26245 0.26245 0.23805 0.33646 0.25527 0.81954 0 0.07555 -0.08092 0.22011 DV.2009 DV 0.44716 0.21748 0.34044 0.27875 0.26245 0.24304 0.34242 0.26007 0....
2008 Jul 14
2
Backslash in sub pattern?
Dear guRus, I am trying to replace "~" by "$\sim$" for TeX. However, I can't get the backslash to work. I would like to turn "DV~IV" into "DV$\sim$IV". sub("~","$\sim$","DV~IV") => "DV$sim$IV" sub("~","$\\sim$","DV~IV") => "DV$sim$IV" sub("~","$\\\sim$","DV~IV") => "DV$sim$IV" sub(&...
2010 Jul 21
1
The opposite of "lag"
Hello! I have a data frame A (below) with a grouping factor (group). I take my DV and create the new, lagged DV by applying the function lag.it (below). It works fine. A <- data.frame(year=rep(c(1980:1984),3), group= factor(sort(rep(1:3,5))), DV=c(rnorm(15))) lag.it <- function(x) { DV <- ts(x$DV, start = x$year[1]) idx <- seq(length = length(DV)) DVs <- cb...
2009 Aug 26
2
simple graph question: manipulating variable names
This is a simple problem that has stumped me: I'm trying to loop through a few dozen variable names in graphs. I've tried various approaches like this: attach(mydata) ivs <- c("oneiv", "anotheriv", "yetanotheriv") dvs <- c("onedv", "anotherdv", "yetanotherdv") for (iv in ivs) { for (dv in dvs) { graphname <- paste(iv, dv, ".png", sep = "") png(file=graphname, width=300, height=300) plot(dv ~ iv, pch=".") lines(loess.smooth(iv, dv), lty=1) dev.off...
2011 Mar 30
3
optim and optimize are not finding the right parameter
Dear all, I have a function that predicts DV based on one predictor pred: pred<-c(0,3000000,7800000,15600000,23400000,131200000) DV<-c(0,500,1000,1400,1700,1900) ## I define Function 1 that computes the predicted value based on pred values and parameters a and b: calc_DV_pred <- function(a,b) { DV_pred <- rep(0,(length(pred)))...
2011 Mar 07
1
More appropriate optimization routine?
Hello! I have 2 variables - predictor "pred" and response variable "DV": pred<-c(439635.053, 222925.718, 668434.755, 194242.330, 5786.321, 115537.344, 100835.368, 7133.206, 159058.286, 4079991.629, 3380078.060, 2661279.136, 2698324.478, 1245213.965, 1901815.503, 1517019.451, 1396857.736, 1034030.988, 432249.574, 342329.325, 1831335.792, 2209578.859, 1641709....
2007 Apr 27
4
how to evaluate a dynamic variable?
Please help me evaluate a "dynamic variable" as show in the code snippet below. # regular variable a = c(1,2,3,4) # dynamic variable set at runtime DV = "a" eval(DV) --> a eval(eval(DV)) --> a # what I want something_goes_here(DV) --> 1,2,3,4 Can someone teach me how to do this? Thanks very much. - Bobby
2009 Oct 28
4
Insertar filas en un data frame
Hola, Por favor, necesito insertar una fila debajo de las filas que tengan DV distinto de cero, pero no me deja insertar hasta el final de la tabla. Esta es mi tabla y este es el código con el que estoy apurado. C ID TIME DV AMT RATE CMT SS II EVID GRUPO VISITA DOSIS VECES FORMA NAP EDAD SEXO ALTURA PESO 11 0 0 3 0 1 1 12 1 3 0 3 2 1 0 77 2 147 74 11 1.417 0.001 0 0 2 0...
2009 Feb 27
1
testing two-factor anova effects using model comparison approach with lm() and anova()
I wonder if someone could explain the behavior of the anova() and lm() functions in the following situation: I have a standard 3x2 factorial design, factorA has 3 levels, factorB has 2 levels, they are fully crossed. I have a dependent variable DV. Of course I can do the following to get the usual anova table: > anova(lm(DV~factorA+factorB+factorA:factorB)) Analysis of Variance Table Response: DV Df Sum Sq Mean Sq F value Pr(>F) factorA 2 7.4667 3.7333 4.9778 0.015546 * factorB 1 2.1333 2.13...
2004 Mar 08
1
drawing filled countries according to data using map('world')? - follow up
...er time using different maps for year=1985, 1990, etc.). In my dataset [Test] I have created a vector 'map.name' that contains country names that I have made identical to the country names in file world.N in .../library/maps/mapdata/. > Test[1:10,] region fix.float wbcode name year dv dv.lag map.name polygon 1 lac NA ABW Aruba 1973 NA NA Aruba 1936 2 lac NA ABW Aruba 1974 NA NA Aruba 1936 3 lac NA ABW Aruba 1975 NA NA Aruba 1936 4 lac NA ABW Aruba 1976 NA NA Aruba 1936 5 lac...
2008 Jun 02
3
[LLVMdev] The first two lines of llvm tutorial don't compile.
I took the first two lines of the sample program in the tutorial: hendrik at lovesong:~/dv/lang/hlvm$ cat broken.cpp #include "llvm/DerivedTypes.h" #include "llvm/Module.h" hendrik at lovesong:~/dv/lang/hlvm$ and tried to compile them using the llvm-dev in Debian testing: hendrik at lovesong:~/dv/lang/hlvm$ g++ -o broken.o -c broken.cpp In file included from /usr...
2006 Feb 24
3
Summarize by two-column factor, retaining original factors
I am having trouble doing the following. I have a data.frame like this, where x and y are a variable that I want to do calculations on: Name Year x y ab 2001 15 3 ab 2001 10 2 ab 2002 12 8 ab 2003 7 10 dv 2002 10 15 dv 2002 3 2 dv 2003 1 15 Before I do all the other things I need to do with this data, I need to summarize or collapse the data by name and year. I've found that I can do things like nameyear<-interaction(name,year) dataframe$nameyear<-nameyear tapply(dataframe$x,dat...
2008 Jun 22
1
two newbie questions
...ly so simple you won't need to. # I have some data (there are many 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 &l...
2004 Sep 15
1
video source
In order to experiment with the theora encoder, I bought a mini-DV camcorder a couple of weeks ago; a Panasonic PV-GS9 for $250. I wanted a mini-DV because it is claimed that capturing video from the camcorder to a computer over a firewire cable results in an exact copy of the recorded video. That was not my experience. The video I captured to my computer ov...
2010 Sep 29
1
Understanding linear contrasts in Anova using R
.... that no one could love," and #then suggested looking at the means to understand where they came from. I have stared # and stared at his means and then my means, but can't find a relationship. # The following code and output illustrates the problem. # Various examples of Anova using R dv <- c(1.28, 1.35, 3.31, 3.06, 2.59, 3.25, 2.98, 1.53, -2.68, 2.64, 1.26, 1.06, -1.18, 0.15, 1.36, 2.61, 0.66, 1.32, 0.73, -1.06, 0.24, 0.27, 0.72, 2.28, -0.41, -1.25, -1.33, -0.47, -0.60, -1.72, -1.74, -0.77, -0.41, -1.20, -0.31, -0.74, -0.45, 0.54,...
2014 May 06
1
Actions and IRC log from May 6th VIRT SIG meeting
...little painful on IRC, but welcome lars_kurth kbsingh: does sounds like a centos-wide decision that needs to be made. I propose to take an action for gwd and me to replay to the respective threads. gwd <ircs://freenode/gwd,isnick> Is there really a difference? Isn't that the point of DVCS? kbsingh <ircs://freenode/kbsingh,isnick> gwd: for the sake of convenience, I'd say maybe we just trial the model of having everything under /CentOS/ and if or when we run into a problem, we can try to change things around gwd <ircs://freenode/gwd,isnick> That's certainly...
2012 Aug 14
4
Subsetting rows by multiple levels of selected values
Dear list, Let's say we have a data frame as follows, >expand.grid(a=1:5,b=c(1,5,10,20),DV=c(0.1,0.2,0.3))->df1 >df1$DV<-rgamma(60,shape=10) columns a and b are two levels. DV is the column with values we are interested in. Then another data frame df2 with values as follows data.frame(a=c(2,2,3,4,5),b=c(5,10,1,5,20))->df2 Now I want to a subset of df1 that match df2 at th...
2011 Jul 01
1
Poisson GLM with a logged dependent variable...just asking for trouble?
Dear R-helpers, I'm using a GLM with poisson errors to model integer count data as a function of one non-integer covariate. The model formula is: log(DV) ~ glm(log(IV,10),family=poisson). I'm getting a warning because the logged DV is no longer an integer. I have three questions: 1) Can I ignore the warning, or is logging the DV (resulting in non-integers) a serious violation of the Poisson error structure? 2) If the answer to #1 is "n...
2008 Jun 02
0
[LLVMdev] The first two lines of llvm tutorial don't compile.
You need to use the script 'llvm-config' to pass correct arguments to g ++: g++ -o broken.o `llvm-config --cxxflags` broken.cpp On Jun 2, 2008, at 9:43 AM, Hendrik Boom wrote: > I took the first two lines of the sample program in the tutorial: > > > hendrik at lovesong:~/dv/lang/hlvm$ cat broken.cpp > #include "llvm/DerivedTypes.h" > #include "llvm/Module.h" > hendrik at lovesong:~/dv/lang/hlvm$ > > > and tried to compile them using the llvm-dev in Debian testing: > > > hendrik at lovesong:~/dv/lang/hlvm$ g++ -o broken.o...
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 th...