Displaying 20 results from an estimated 600 matches similar to: "Why ?rmvnorm not working"
2007 May 16
2
'attach workspace' on R console File menu
Quite often I save misc functions and data objects as .RData files that I
can use in other sessions. Although I could 'Load Workspace" these files,
most of the times I prefer attaching them. It would be really convenient to
have a menu item under the File menu on the Windows R Console to allow
attaching workspaces, e.g.
--------------------
Attach Workspace...
Load Workspace...
Save
2007 Mar 23
1
Creating new directory/folder from R script on run time.
Hi,
Please correct me if this request does not belong to this discussion forum.
Kindly suggest me if there is a way to create a new folder from R on
runtime?
for e.g.
>From one of my R script I want to store the PDF result file in a perticular
folder let say c:\tt
for that initially i am creating "tt" folder manually and using the
following command:
fname <-
2007 Mar 26
3
substitute variable
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070326/3e379677/attachment.pl
2007 Apr 22
1
labels
Hello, I would like to add to axis labels special caracters. Instead of writing :plot(simul, xlab="beta", ylab="sigma11") It would be great if I could write something as in LaTeX :plot(simul, xlab="\beta", ylab="\sigma_{11}") Is there a way to do that ? Thank you
_________________________________________________________________
ues clics pour retrouver tout
2007 Apr 23
2
residuals and predict
hi,
in using glm function is it possible to extract residuals and predict values ?
___________________________________________________________________________
[[alternative HTML version deleted]]
2007 Apr 24
4
from R to html
hello,
If I wanna export data.frame from R to html have you got some ideas to do this?
___________________________________________________________________________
[[alternative HTML version deleted]]
2007 May 04
3
listing R packages in our system
Hi,
I like to know the simple way to list the R package names in our linux
system.
Thanks
Ying
[[alternative HTML version deleted]]
2007 May 29
1
look for packages
Dear list members,
I am analysing some microarray data. I have got the differentially
expressed genes and now want to carry out PCA analysis to get the main
components that contribute to the variance.I have browsered the CRAN and
BioConductor and did not find an appropriate package.
Have anybody ever carried out PCA analysis? Is there any package about PCA
in R?
Thanks for your advice.
2007 Jun 13
2
Removing Inf and Inf values from a fata frame
Hi,
I have a csv file with empty values, when I apply
the different functions (mean, std, etc.) I create a
new data frame, the empty values generate Inf and -Inf
values. How can I remove those Inf and -Inf values
from the new data frame? I already specified na.rm in
the mean and std functions, but the values are still
there.
Thank you,
Judith
2007 Jun 20
2
Creating directory under Windows R session
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070620/7c279140/attachment.pl
2007 Jun 25
3
fractional calculations
Hi All,
is there a function in R that allows me to work with fractions without
transforming them to floats (or whatever) in between?
Something that would calculate something like:
(1/2 + 1/8) * 1/2 = 5/16
without ever transforming to 0.5 and 0.125?
Best,
Federico
--
Federico C. F. Calboli
Department of Epidemiology and Public Health
Imperial College, St Mary's Campus
Norfolk Place,
2007 May 07
3
like apply(x,1,sum), but using multiplication?
Hi,
I need to multiply all columns in a matrix so something like
apply(x,2,sum), but using multiplication should do.
I have tried apply(x,2,"*")
I know this must be trivial, but I get:
Error in FUN(newX[, i], ...) : invalid unary operator
The help for apply states that unary operators must be quoted. I tried
single quotes too, with the same results.
Thanks,
-Jose
--
Jose
2007 Apr 19
3
plotting command trouble
Dear R-Experts,
I have the following command lines:
windows()
plot(0:60, 0:0.896, type="n", xlab="Zeit [min]", ylab="Absorptionsmessung
bei 600nm",main="Zellwandstabilit?t" )
dev.off()
Can anyone say me why the plot command does not work and how the correct one should look like?
Important is: x-axis goes from 0 to 60 and the y-axis from 0 to 0.896!
2007 Mar 26
4
a very small query
Hi All
what is the command to give me the listing of the loaded packages. I mean
which are active and not the listing of all the installed packages as
given by library()
thanks in advance
-gaurav
============================================================================================
DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
2007 Apr 20
1
Hiding "Warning messages" in coxme output
Dear list,
I have been trying to use coxme in R 2.3.1.
When I use coxme in the following data sim.fr1, i get
"Warning messages: using 'as.environment(NULL)' is
deprecated"
Why does it occur?
How can I hide such warning message,
especially when coxme is under a loop?
Mohammad Ehsanul Karim (Institute of Statistical
Research and Training, University of Dhaka)
>
2007 Mar 27
7
Replacement in an expression - can't use parse()
Dear all,
Suppose I have a very long expression e. Lets assume, for simplicity, that it is
e = expression(u1+u2+u3)
Now I wish to replace u2 with x and u3 with 1. I.e. the 'new'
expression, after replacement, should be:
> e
expression(u1+x+1)
My question is how to do the replacement?
I have tried using:
> e = parse(text=gsub("u2","x",e))
> e =
2011 May 01
2
Question on where samples are grouped in rmvnorm{mvtnorm}
Dear All,
For function: rmvnorm{mvtnorm} in (library mvtnorm, not splus2R), if I generate 2 bivariate normal samples as follows:
> rmvnorm(2,mean=rep(0,2),sigma=diag(2))
[,1] [,2]
[1,] 2.0749459 1.4932752
[2,] -0.9886333 0.3832266
Where is the first sample, it is stored in the first row or the first column?
Does this function store samples row-wise or column-wise?
Thank
2009 Oct 08
3
foreach loop - rejection method
Hi Everybody,
Thanks in advance for your help.
This is my first time using the foreach statement and I cant get it to work
properly so here is what i have
test<-function(){
repeat {
cand2[l-1]<-rinvgamma(1,phi,lambda[l-1])
q2<-dinvgamma(cand2[l-1],phi,lambda[l-1])
p2<-cand2[l-1]^-1.5*exp(-y[l]^2/(2*cand2[l-1]))*exp(-((log(cand2[l-1])-mu_t_cand[l-1])^2)/2*sigmasq)
2012 Oct 04
2
Help with R Fitting an inverse Gamma
Dear all,
I am new in R and would like to ask for someone's help in understanding
where I go wrong with the following code:
rm(list=ls())
# Required packages
library(MCMCpack)
# Simulated data
set.seed(1)
data = rinvgamma(n=250, shape = 5, scale = 2) + 2
hist(data)
# log-likelihood
ll = function(par){
if(par[1]>0 & par[2]>0 & par[3]<min(data)) return(
2007 Feb 11
0
problem with rinvgamma ?
Hi,
By rinvgamma(10000,1.33,2.33) , am I supposed to get a var=3 ? Tried it many times , not even close. Why is this?
thanks a lot .
best