o plot two variables against the same abscissa values. They
have different scales. I've found how to make a second axis on the right
for labeling, but not how to plot two lines at different scales.
Thanks,
- Rick
r...@ece.pdx.edu
__
R-help@r
You need to include the argument "mu=1" (without parentheses). For example:
> t.test(group1,group2, mu=1)
for a two-sample independent groups t-test. If you type:
> ?t.test
you can see the help information for the t.test function.
RIck
On 09/08/2016 08:06 AM, Matti Vilj
Have you considered using the semPlot package? It works nicely with
lavaan models (among other sem packages). There is also the DiagrammeR
package.
Rick
On 06/23/2015 10:48 AM, DzR wrote:
Dear Senior users of R/R Studio,
I am very new to this environment hence am unable to plot the SEM
t
within the first three hours of R development.
Hope this helps,
Rick Reeves
Foxgrove Solutions, Ltd
On 1/10/2015 6:47 PM, John Sorkin wrote:
I urge you to try it.
John
John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of M
First, a histogram would not be appropriate (your data appear to be
categorical - a histogram is for continuous numeric vales) - you would need
a bar plot. You should make two vectors (one for the category names and the
other for the frequencies) and use the barplot function.
On Fri, Nov 9, 2018 a
, minimal, self-contained, reproducible code.
You are using a Chi-squared test on a 124x2 matrix of values (not all
integers) and many are zeros. The expected frequencies for many cells
are very small (near zero, less than 1) hence the warning message. More
importantly, does this application of the C
are different. If you want to have comparisons
like this result in being considered equal, I think there is a way to
use a fuzzy comparison but I don't remember the details.
Rick
--
Richard A. Bilonick, PhD
Assistant Professor
Dept. of Ophthalmology, School of Medicine
Dept. of Biostatistic
e work'
hello <- function(person.name) {
return (paste0('Hello, ', person.name, '!'))
}
module.exports = hello
____
File: main.R
hello <- lrequire(welcome)
hello('Rick')
Note that the var
HS, data) {
xy <- sortedXyData(mCall[["x"]],LHS,data)
min.s <- min(y)
dif.s <- max(y)-min(y)
dplt.s <- 0.5
p.s <- -.20
value <- c(min.s, dplt.s, dif.s, p.s)
names(value) <- mCall[c("min","dplt","dif","p&
I am trying to create a simple window that displays a dataframe. I was able
to put together a function from a couple of examples on the web. For the
most part my function works. The only problem is with resizing the window.
I found a post where someone suggested using
with(env,tkpack("configur
Dear all,
If you have experience with the -network- package, can you show me how to
remove nodes based on their degrees? For instance, removing all nodes with an
out-degree or in-degree of 1?
Thank you very much for your help!
Rick
__
R-help@r
Dear all,
If you have experience with the -network- package, can you show me how to
remove nodes based on their degrees? For instance, removing all nodes with an
out-degree or in-degree of 1?
Thank you very much for your help!
Rick
__
R-help@r
Rmpi:
R CMD INSTALL /home/rick/Rmpi_0.5-7.tar.gz
--with-mpi=/usr/lib64/lam/include
But I get the following error message:
/usr/bin/ld: skipping incompatible /usr/lib/lam/lib/libmpi.so when
searching for -lmpi
I'm not sure what else to install/unins
Not sure if you are aware of the OpenMx SEM package
(http://openmx.psyc.virginia.edu/). It's a very full-featured structural
equation modeling package.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read th
ndle SEM models.
I'm thinking I may have to do a two-step process and run SEM package to get
factor scores, and then put in as a predictor in count outcomes package.
Thanks!
Rick
[[alternative HTML version deleted]]
__
R-help@r-proj
used these extended graphics capabilities much at
all, so I really am getting frustrated
Regards and thanks in advance,
Rick
--
The code segment in que
ate.
Thanks for your help,
Rick
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commen
I'm using the plotCI function and I'd like to overlay additional means
with CIs onto an existing plotCI-created plot in a different color. Is
this possible? Thanks.
Rick
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/
Hi All.
I'd like to generate a sample of n observations from a k dimensional
multivariate normal distribution with a random correlation matrix.
My solution:
The lower (or upper) triangle of the correlation matrix has
n.tri=(d/2)(d+1)-d entries.
Take a uniform sample of n.tri possible correlations
Hi All.
I'd like to generate a sample of n observations from a k dimensional
multivariate normal distribution with a random correlation matrix.
My solution:
1) The lower (or upper) triangle of the correlation matrix has
n.tri=(d/2)(d+1)-d entries.
2) Take a uniform sample of n.tri possible correl
correlation matrices of size k equally likely using
your approach? It would seem so based on your description. If so, it
is a way cool solution.
Rick
On Thu, Feb 10, 2011 at 12:18 PM, wrote:
> If you want a random correlation matrix, why not just generate random data
> and acce
70 (the
default date by chron) and making a subset and only replacing values that
are not equal to zero doesn't work either:
d <- x
## above coding for chron with x replaced with d ##
mat <- match(x$ID, d$ID)
x$dateofdeath <- d$dateofdeath[mat]
On 12/01/2011 07:18 AM, John Fox wrote:
> To:r-help@r-project.org
> Subject: [R] FIML with missing data in sem package
>
You should check out the OpenMx R package. Just search for OpenMx and
SEM. You can download from the web site. It does FIML and is an
excellent SEM package.
quot;function" not found.
Question: If it is possible, what changes do I make to my package and
install process to get
args() to display the function prototype(s) for the functions in my
local package?
Thanks,
Rick Reeves
__
R-help@r-proje
Duncan:
Indeed, adding the function names to the NAMESPACE file (in the form:
export(functionName)) solved the problem,
and the args() function displays the function argument lists.
Thanks,
Rick Reeves
On 12/5/2011 2:49 PM, Duncan Murdoch wrote:
On 11-12-05 3:04 PM, Rick Reeves wrote
this cox regression model.
Can someone point us to the proper documentation for scoring this model?
Thanks in advance,
Rick Pechter
http://www.dmg.org/PMML-3_2";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.dmg.org/PMML-3_2
http://
The SAS/IML documentation on calling R is at
http://support.sas.com/documentation/cdl/en/imlug/64248/HTML/default/viewer.htm#r_toc.htm
Other ways to get help include calling SAS Technical Support (it's free) and
posting your question to the SAS/IML Discussion forum at
http://communities.sas.com/com
nd do computations. When I try to do any graphics using
x11, I get the message:
unable to load shared library '/usr/lib/R/modules//R_X11.so':
/usr/lib/R/modules//R_X11.so: undefined symbol:
cairo_image_surface_get_data
Does anyone have an idea on how to fi
l/reinstall and had the same problem.
Thanks for any suggestions.
--
Rick Voland
[EMAIL PROTECTED]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide
Files\R\R-2.6.2
(used for previous versions of R)
and still had the same permissions issue. I also tried setting R_USER
environment variable as I previously indicated.
--
Rick Voland
[EMAIL PROTECTED]
__
R-help@r-project.org mailing list
https
582
residual sum-of-squares: 555915
Number of iterations to convergence: 11
Any idea why having a zero for the first value of X causes this problem?
Thanks in advance,
Rick DeShon
[[alternative HTML version deleted]]
__
R-help@r-projec
cient way to compute the average covariance matrix over the
list members in "lcov"?
Thanks in advance,
Rick
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLE
cient way to compute the average covariance matrix over
the list members in "lcov"?
Thanks in advance,
Rick DeShon
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-
e: 'rmutil'
The following object(s) are masked from package:base :
units
Error in library.dynam("ordinal", pkg, lib) :
shared library 'ordinal' not found
Error in library(ordinal) : .First.lib failed for 'ordinal'
Does anyone know ho
I corrected it as described above.
It would have been a whole lot easier if the package was in the
contributed package repository.
Rick B.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http
retrospective"
power analysis leads to logical contradictions with respect to the
confidence intervals and p-values from the analysis of the data. In
other words, DON'T DO IT! All the information is contained in the
confidence intervals which are based on the observed data - an after the
f
Hi All.
Imagine you have a large block diagonal matrix. I'd like to replace
the zeros in this matrix with small random (runif) numbers. Any ideas
for a simple and efficient way to do this?
Best regards,
Rick DeShon
__
R-help@r-project.org ma
;"8"<"30"<..: 41 11 33 22 4 27 5
2 37 19 ...
$ trial: int 1 1 1 1 1 1 1 1 1 1 ...
$ ACC : int 1 0 1 1 1 0 1 1 1 1 ...
$ RT : int NA 1309 544 654 NA 441 882 1097 898 ...
$ block: int 1 1 1 1 1 1 1 1 1 1 ...
- attr(*, "formula")=Class 'formul
I was able to get step.gam to work on its example but it doesn't work on
my model.
Has anyone else run into this?
Rick B.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide h
incorporate a Spatial(Points or
Polygons)DataFrame into the spplot display list?
It seems as though many scientists would like to create such plots
without resorting to GRASS or
another GIS.
Thanks for any advice,
Rick Reeves
Rick Reeves
Scientific Programmer / Analyst
National Center for
I can recommend it highly, esp for those of us in the geo spatial realm:
http://casoilresource.lawr.ucdavis.edu/drupal/node/442
Thanks do Dylan for answering...
RR
--
Rick Reeves
Scientific Programmer / Analyst
National Center for Ecological Analysis and Synthesis
UC Santa Barbara
ges are in
/tmp/RtmpGDx12u/downloaded_packages
Warning message:
installation of package 'rimage' had non-zero exit status in:
install.packages("rimage")
I cannot find "config.log" that is mentioned. Can someone plea
) }
where "vars" is a vector of names for items in a data.frame.
If I use "as.symbol" to create names, the evaluation never works
correctly. Is there a way to do this? Any suggestions would be
appreciated.
Rick B.
__
R-help@r-proj
t
will allow my function to work normally (just as it would if I wrote out
the function calls with the names manually inserted)? (I would assume
that any function that generates a character variable from the variable
name is not going to produce the desired result.)
Rick B.
__
n vars) with(dat, eval(subst(ex, x = as.symbol(i),y=2)))
> myfunc <- function(y,x) {
+ nam <- deparse(substitute(x))
+ val <- mean(x)
+ cat("mean(", nam, ") =", val,"y=",y, "\n")
+ invisible(val)
+ }
> ex <- quote(myfunc(y,
d. Is the approach shown below correct?
Rick B.
# Orthodont is from nlme (can't have both nlme and lme4 loaded at same
time!)
# OrthoFem<-Orthodont[Orthodont$Sex=="Female",]
# http://tolstoy.newcastle.edu.au/R/help/06/03/23758.html
library(lme4)
fm1OrthF. <- lmer(distan
ess the information from lmer to compute intervals for the BLUPS
that reflect the uncertainty in these estimates. The code I showed was
taken from someone who had the same question and the various replies.
Rick B.
__
R-help@r-project.org mailing list
ht
.hokudai.ac.jp/~kubo/Rdoc/library/lme4/html/lmer-class.html
bVar:
A list of the diagonal inner blocks (upper triangles only) of
the positive-definite matrices on the diagonal of the inverse of
ZtZ+Omega. With the appropriate scale factor (and conversion to
a sy
appropriate scale factor (and conversion to a symmetric matrix)
these are the conditional variance-covariance matrices of the random
effects.
Is there anything similar in the nlme package using the lme function?
Rick B.
__
R-help@r-project.org mailing list
https
ilto:[EMAIL PROTECTED] On Behalf Of Rick Bilonick
> > Sent: Monday, November 12, 2007 4:40 PM
> > To: R Help
> > Subject: [R] Using lme (nlme) to find the conditional
> > variance of therandom effects
> >
> > Using lmer in the lme4 package, you can compute t
On Tue, 2007-11-13 at 01:03 -0500, Rick Bilonick wrote:
>
> Is there some way to get ranef with postVar=TRUE to show what the
> variances are, or what the lower and upper bounds are? qqmath makes nice
> plots but I need to obtain the numerical values.
>
> Rick B.
>
I fou
In the following example, how can I drop the group index from the list after
I perform a split?
n <- 3
nn <- 10
g <- factor(round(n * runif(n * nn)))
x <- rnorm(n * nn) + sqrt(as.numeric(g))
df<- data.frame(g,x)
df.s <- split(df,g)
Thanks!
Rick DeShon
Hello,
I am attempting to install two R packages with specific version numbers.
These are Rserve_1.8-0.zip and MASS_7.3-45.zip. As the file extension
suggests, I am installing packages from local zipfiles in the GUI Packages
menu. R Console displays positive feedback when MASS is loaded in this
53 matches
Mail list logo