Displaying 6 results from an estimated 6 matches for "dfxi".
Did you mean:
dfi
2012 Apr 24
1
Use of optim to fit two curves at the same time ?
Dear list,
Here is a small example code that use optim and optimize in order to fit
two functions.
Is it possible to fit two functions (like those two for example) at the
same time using optim ... or another function in R ?
Thanks
Arnaud
######################################################################
## function 1
x1 <- 1:100
y1 <- 5.468 * x + 3 # + rnorm(100,0, 10)
dfxy <-
2010 Dec 27
3
Drop column from a data frame
I am trying to drop a column of a data frame. The code below attempts to drop a numeric column (which does not work but gives no error or warning) and a factor column (which does not work but gives an error).
I would appreciate someone telling me why my code does not work, and suggesting code that will work.
Thanks,
John
rm(dfxyz,dfxz,dfxy)
# create the data frame.
dfxyz <-
2011 Jan 06
4
Different LLRs on multinomial logit models in R and SPSS
Hello, after calculating a multinomial logit regression on my data, I
compared the output to an output retrieved with SPSS 18 (Mac). The
coefficients appear to be the same, but the logLik (and therefore fit)
values differ widely. Why?
The regression in R:
set.seed(1234)
df <- data.frame(
"y"=factor(sample(LETTERS[1:3], 143, repl=T, prob=c(4, 1, 10))),
"a"=sample(1:5,
2008 Apr 01
1
superimpose histogram on biplot
Hi all,
I've been trying to figure out how to superimpose a histogram on a
biplot that shows the relative contribution of each axis. I have
been using the NIPALS function (http://biomserv.univ-lyon1.fr/~dray/
files/softwares/nipals.R) to run principal component analyses. Here
is a toy example.
source("http://biomserv.univ-lyon1.fr/~dray/files/softwares/nipals.R")
2005 Sep 21
3
Sort a data frame with respect to more than one variable
Dear All,
How can I sort a data frame with respect to more than one variable?
I know that for one variable X one may use: df[order(df$X), ] where df is the data frame containing X.
Many thanks,
Bernard
---------------------------------
[[alternative HTML version deleted]]
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
V;
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: r-help-request at r-project.org
Date: Tue, 30 Sep 2008 12:00:06
To: <r-help at r-project.org>
Subject: R-help Digest, Vol 67, Issue 31
Send R-help mailing list submissions to
r-help at r-project.org
To subscribe or unsubscribe via the World Wide Web, visit
https://stat.ethz.ch/mailman/listinfo/r-help
or, via email,