Displaying 20 results from an estimated 300 matches similar to: "covariate in a glm"
2008 Jan 18
3
Select a group of data from a file
Hello everybody!
I've a file with several data six variables, three quantitative and three qualitative, I would like to select a group of data from the file to analyze then, i.e:
my file is like that (but with 6 variables):
Var1   Var2
2       1
5       1
8       1
7       2
3       2
8       2
I want to use only the data where var2 is "1"
2       1
5       1
8       1
Exist a
2013 Aug 29
2
sambaLMPassword
I have a Samba-PDC installation (version is 3.6.3) with openLDAP.
When I change the password from a client (Windows/XP and Windows/7) the
attribute "sambaNTPassword" is changed and I can log-in with the new
pssword.
The problem is that the content of the attribute "sambaLMPassword" is
deleted.
I remember that in my previous version of Samba (3.0.28) both attributes
were
2013 Aug 22
2
profile permissions
I have a working samba-pdc installation with version 3.0.28
The "profile" permissions in 3.0.28 (and all the files in this directory)
are as follow:
drwx--x--x  2 user1 ntuser 4096 Aug 22 12:36 profile
I am installing a new server with samba version 3.6.3
The "profile" permissions in 3.6.3 (and all the files in this directory)
are as follow:
drwx--x--x+  2 user1 ntuser 4096
2008 Sep 09
1
How do I compute interactions with anova.mlm ?
Hi,
I wish to compute multivariate test statistics for a within-subjects repeated measures design with anova.mlm. 
This works great if I only have two factors, but I don't know how to compute interactions with more than two factors. 
I suspect, I have to create a new "grouping" factor and then test with this factor to get these interactions (as it is hinted in R News 2007/2), 
but
2007 Oct 30
2
flexible processing
Hello,
unfortunately, I don't know a better subject. I would like to be very flexible 
in how to process my data.
Assume the following dataset:
par1 <- seq(0,1,length.out = 100)
par2 <- seq(1,100)
fac1 <- factor(rep(c("group1", "group2"), each = 50))
fac2 <- factor(rep(c("group3", "group4", "group5", "group6"), each =
2002 Oct 17
1
manova with Error?
Let's say I have a within-subject experiment with 2 observables, obs1 and ob2 and 2 independent factors, fac1 and fac2.
I can do
summary( aov( obs1~fac1*fac2 + Error(Subject/(fac1*fac2)) ) )
summary( aov( obs2~fac1*fac2 + Error(Subject/(fac1*fac2)) ) )
to test the 2 observables separately.
> summary( fit<-manova( cbind(obs1,obs2)~fac1*fac2 + Error(Subject/(fac1*fac2)) ) )
gives
2009 Oct 06
1
ggplot2: mapping categorical variable to color aesthetic with faceting
Hello Again...  I?m making a faceted plot of a response on two categorical
variables using ggplot2 and having troubles with the coloring. Here is a
sample that produces the desired plot:
compareCats <- function(data, res, fac1, fac2, colors) {
    require(ggplot2)
    p <- ggplot(data, aes(fac1, res)) + facet_grid(. ~ fac2)
    jit <- position_jitter(width = 0.1)
    p <- p +
2009 May 22
1
regrouping factor levels
Hi all,
I had some trouble in?regrouping factor levels for a variable. After some experiments, I have figured out how I can recode to modify the factor levels. I would now like some help to understand why some methods work and others don't.
Here's my code :
rm(list=ls())
###some trials in recoding factor levels
char<-letters[1:10]
fac<-factor(char)
levels(fac)
print(fac)
##first
2010 Oct 13
1
interaction contrasts
hello list,
i'd very much appreciate help with setting up the 
contrast for a 2-factorial crossed design.
here is a toy example:
library(multcomp)
dat<-data.frame(fac1=gl(4,8,labels=LETTERS[1:4]),
                fac2=rep(c("I","II"),16),y=rnorm(32,1,1))
mod<-lm(y~fac1*fac2,data=dat)
## the contrasts i'm interressted in:
c1<-rbind("fac2-effect in
2011 Oct 03
1
function recode within sapply
Dear List,
I am using function recode, from package car, within sapply, as follows:
L3 <- LETTERS[1:3]
(d <- data.frame(cbind(x = 1, y = 1:10), fac1 = sample(L3, 10,
replace=TRUE), fac2 = sample(L3, 10, replace=TRUE), fac3 = sample(L3,
10, replace=TRUE)))
str(d)
d[, c("fac1", "fac2")] <- sapply(d[, c("fac1", "fac2")], recode,
"c('A',
2011 Jun 17
1
question about split
Dear R-users
I seem to be stumped on something simple.  I want to split a data frame 
by factor levels given in one or more columns e.g. given
dat <- data.frame(x = runif(100), 
                  fac1 = rep(c("a", "b", "c", "d"), each = 25), 
                  fac2 = rep(c("A", "B"), 50))
I know I can split it by fac1, fac2 by:
2002 Jun 04
2
Scaling on a data.frame
Hey,
hopefully there is an easy way to solve my problem.
All that i think off is lengthy and clumsy.
Given a data.frame d with columns VALUE, FAC1, FAC2, FAC3.
Let FAC1 be something like experiment number,
so that there are exactly the same number of rows for each level of FAC1
in the data.frame.
Now i would like to scale all values according to the center of its
experiment.
So i can apply s
2010 Apr 21
5
Bugs? when dealing with contrasts
R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
  Natural language support but running in an English locale
R is a collaborative project with
2007 Oct 17
1
passing arguments to functions within functions
Dear R Users,
I am trying to write a wrapper around summarize and xYplot from Hmisc  
and am having trouble understanding how to pass arguments from the  
function I am writing to the nested functions.
There must be a way, but I have not been able to figure it out.
An example is below.
Any advice would be greatly appreciated.
Thanks, Dan
# some example data
df=expand.grid(rep=1:4,
2009 Oct 02
1
ggplot2: proper use of facet_grid inside a function
Hello Again R Folk:
I have found items about this in the archives, but I?m still not getting
it right.  I want to use ggplot2 with facet_grid inside a function with
user specified variables, for instance:
    p <- ggplot(data, aes_string(x = fac1, y = res)) + facet_grid(. ~
fac2)
Where data, fac1, fac2 and res are arguments to the function.  I have
tried
    p <- ggplot(data,
2010 Nov 27
1
d.f. in F test of nested glm models
Dear all,
I am fitting a glm to count data using poison errors with the log link.  My
goal is to test for the significance of model terms by calling the anova
function on two nested models following the recommendation in Michael
Crawley's guide to Statistical Computing.
Without going into too much detail, essentially, I have a small
overdispersion problem (errors do not fit the poisson
2002 Dec 13
1
Problem with lattice bwplot
I've come across the following error when using free scales with bwplot (I use 
a small example data set just to illustrate the problem):
> d <- data.frame(
x=c(34.4, 12.4, NA, 65.3, NA, 12.0, 45.0, 645.0, 644.0,323.0),
fac1=c('a','a','b','a','b','a','a','c','c','c'),
2023 Nov 21
1
Cambiar el intervalo de confianza en un anova
Buenas,
En R, como en la mayoría del software estadístico, no se utiliza ningún nivel de confianza sino que lo que se calcula es el p-valor asociado
al contraste. De forma que cuanto más cerca de 0 esté el p-valor "menos credibilidad le damos a la hipótesis nula". Dicho mejor, debemos
rechazar la hipótesis nula si el p-valor está por debajo de nuestro nivel de confianza.
Por ejemplo,
2006 Feb 13
2
?bug? strange factors produced by chron
Hallo all
Please help me. I am lost and do not know what is the problem. I have 
a factor called kvartaly.
> attributes(kvartaly)
$levels
[1] "1Q.04" "2Q.04" "3Q.04" "4Q.04" "1Q.05" "2Q.05" "3Q.05" "4Q.05"
$class
[1] "factor"
> mode(kvartaly)
[1] "numeric"
> str(kvartaly)
 Factor w/ 8
2023 Nov 21
1
Cambiar el intervalo de confianza en un anova
Gracias Carlos.
Yo también he visto el ejemplo que te pone chatGPT, pero la salida que te da no soy capaz de interpretarla.
Os paso las ordenes y las respuestas de R de la propuesta de chatGPT
Ejemplo.aov<- aov(P~TRAT+CORTE+REP)
> summary (Ejemplo.aov)
            Df Sum Sq Mean Sq F value Pr(>F)
TRAT         6 0.0028 0.00046   0.777  0.590
CORTE        2 0.5022 0.25110 424.542 <2e-16