Displaying 20 results from an estimated 2000 matches similar to: "combining different types of graphics (scatterplots, boxplots) using lattice"
2009 Jun 24
2
Boxplots: side-by-side
Dear R-sians..
I am trying to plot boxplots with side-by-side option.. I tried some of the
posted suggestions and could not make it work due to unequal sizes of
categories...
e.g.
weekly measured water depth values are categorized into 5 levels based on
their values
such measurement is again categorized into dichotomous levels - based on the
result of a test
I would like generate boxplot of
2008 Aug 06
1
Correlation dichotomous factor, continous (numerical) and ordered factor
Hello R-User!
I appologise in advance if this should also go into statistics but I am
presently puzzled.
I have a data.frame (about 300 rows and about 80 variables) and my variables
are dichotomous factors, continuous (numerical) and ordered factors.
I would like to calculate the linear correlation between every pair of my
variables, because I would like to perform a logistic regression (glm())
2016 Apr 16
2
Problem: No p-value for a point-baserial correlation with R
Dear community
I'm pretty new to R and I'm trying to do a Point-baserial correlation for a nominal dichotomous variable with a interval scaled variable. It works fine, but the output just shows me the correlation and nothing else (p-Value would be important).
I tried it with the following codes:
- biseral.cor()
- cor.biseral()
- I also tried a polyserial() I've found on this
2007 Aug 07
2
GLMM: MEEM error due to dichotomous variables
I am trying to run a GLMM on some binomial data. My fixed factors include 2
dichotomous variables, day, and distance. When I run the model:
modelA<-glmmPQL(Leaving~Trial*Day*Dist,random=~1|Indiv,family="binomial")
I get the error:
iteration 1
Error in MEEM(object, conLin, control$niterEM) :
Singularity in backsolve at level 0, block 1
>From looking at previous help
2009 Jan 12
3
polychoric correlation: issue with coefficient sign
Hello,
I am running polychoric correlations on a dataset composed of 12 ordinal and
binary variables (N =384), using the polycor package.
One of the association (between 2 dichotomous variables) is very high using
the 2-step estimate (0.933 when polychoric run only between the two
variables; but 0.801 when polychoric run on the 12 variables). The same
correlation run with ML estimate returns a
2011 Aug 05
1
Dichotomous variables
Hi everyone,
Have sample of items for each one, a set of 20 dichotomous (absent-present)
variables are expressed. I'm trying to understand how to explore the
co-occurence of each variable.
Read some papers concerning smallest space analysis, but it does not seems
implemented in any R package (and my protamming skills are =0).
Non metric MDS gives error messages, probably because of the
2007 May 08
3
ordered logistic regression with random effects. Howto?
I'd like to estimate an ordinal logistic regression with a random
effect for a grouping variable. I do not find a pre-packaged
algorithm for this. I've found methods glmmML (package: glmmML) and
lmer (package: lme4) both work fine with dichotomous dependent
variables. I'd like a model similar to polr (package: MASS) or lrm
(package: Design) that allows random effects.
I was
2011 Jun 02
1
Paid R Help
Hello R people,
I am looking to pay someone to help write some R code.
Inputs:
Study identifier: ID Number for the study, each ID number is for one study only each block set should only be used for that study. This will require that you store the results from the blocks someplace on the file system.
Trait #1: dichotomous rural / urban
Trait #2: dichotomous sick / healthy
Assignment Ratio:
2008 Jul 27
2
Link functions in SEM
Is it possible to fit a structural equation model with link functions in R? I
am trying to build a logistic-regression-like model in sem, because
incorporating the dichotomous variables linearly seems inappropriate. Mplus
can do something similar by specifying a 'link' parameter, but I would like
to be able to do it in R, ofcourse.
I have explored the 'sem' package from John Fox,
2011 Aug 25
1
Syntax for a three-level logistic model
Dear People at R help, I am trying to figure out the syntax for a three-level logistic model with a single random effect (intercept):
Data Collected
My data consist of three levels: level 1 is four setting for each student (setting nested within student), and each student is registered in one of 14 universities (students nested within university). More detailed:
A. 2,479 students who have a
2012 Apr 07
6
Drawing a line in xyplot
i am trying to replicate the following graph using xyplot :
attach(x)
plot ( jitter(type), mortality, pch=16, xlim = c(0.25, 3.75))
lines ( c(1-0.375,1.375) , c ( median(mortality[type==1]),
median(mortality[type==1])), lwd=5,col=2)
lines ( c(2-0.375,2.375) , c ( median(mortality[type==2]),
median(mortality[type==2])), lwd=5,col=2)
lines ( c(3-0.375,3.375) , c ( median(mortality[type==3]),
2009 Sep 24
1
multinormial runs tests?
Dear R users,
I would like to test the randomness in a series of N values (N>=2). I know
that runs.test works for dichotomous factor only:
x <- rep(c(1,2), 50)
runs.test(factor(x))
However it doesn't work for series that can take any N values (N>2):
x <- rep(c(1,2,5,4),50)
runs.test(factor(x))
Error in runs.test(factor(x)) : x does not contain dichotomous data
Are there any R
2012 Jan 20
1
Point biserial correlation => Is there any specific command or could I just use cor.test?
Hello,
I found in the forum two threads about point biserial correlation. One of
them (1) mentioned "a point-biserial correlation is just a Pearson
correlation where one of the variables is dichotomous. Thus, the command
is just the normal cor function". The other (2) mentioned "Professor Fox's
package polycor" as a way to calculate point biserial correlation?
2007 May 31
1
Conditional logistic regression for "events/trials" format
Dear R users,
I have a large individual-level dataset (~700,000 records) which I am
performing a conditional logistic regression on. Key variables include
the dichotomous outcome, dichotomous exposure, and the stratum to which
each person belongs.
Using this individual-level dataset I can successfully use clogit to
create the model I want. However reading this large .csv file into R and
running
2009 Jul 17
2
Getting the C-index for a dataset that was not used to generate the logistic model
Does anyone know how to get the C-index from a logistic model - not using
the dataset that was used to train the model, but instead using a fresh
dataset on the same model?
I have a dataset of 400 points that I've split into two halves, one for
training the logistic model, and the other for evaluating it. The structure
is as follows:
column headers are "got a loan" (dichotomous),
2012 Jun 12
2
GEE with Inverse Probability Weights
Greetings,
I have a very, very, simple research question. I want to predict one
dichotomous variable using another dichotomous variable. Straightforward,
right? The issue is that the dataset has two issues causing some
complications for me.
1) The subjects are not independent -- they are sibling pairs. Every person
in the dataset has a sibling in the dataset. This needs to be treated a
2007 Oct 02
1
Design package: plot summary
Hi everybody,
I am a new user of R, design package.
I am trying to plot the estimated hazard ratio's of my cox regression
model with the confidence intervals. But I keep getting the
message:Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") :
contrasts can be applied only to factors with 2 or more levels
I have dichotomous, categorical as well as continuous
2006 Jun 28
1
Simulate dichotomous correlation matrix
Newsgroup members,
Does anyone have a clever way to simulate a correlation matrix such that
each column contains dichotomous variables (0,1) and where each column
has different prevalence rates.
For instance, I would like to simulate the following correlation matrix:
> CORMAT[1:4,1:4]
PUREPT PTCUT2 PHQCUT2T ALCCUTT2
PUREPT 1.0000000 0.5141552 0.1913139 0.1917923
PTCUT2
2005 Oct 10
1
SEM with dichotomous indicators
Hello,
I'd like to know if there is a way to fit a Structural equation model with
dichotomous indicators (ex: problem with a phone solved/ or not) having
effects on a ordinal variable.
How I do that using R?
Do you have an example with the code in R that you can send to me?
Thanks a lot!
Renata Estrella
UFRJ, Brasil, Rio de Janeiro
Renata Leite Estrella
Assistente de
2008 Jan 12
2
Factor Analysis
Good Morning,
Is it possible to use the R program for a CFA with dichotomous data?
Thank you,
Kathleen
Kathleen Kemp, M.A.
Doctoral Clinical Psychology Student,
Concentration: Forensic Psychology
Drexel University
Philadelphia, PA 19104
kk354@drexel.edu
[[alternative HTML version deleted]]