Displaying 10 results from an estimated 10 matches similar to: "getting the response (dependent) from formula?"
2002 Jan 08
2
how to use attr?
I'm trying to build a flexible OLS/SUR/2SLS/3SLS package and I'm having
trouble getting some information out of a formula. For example....
# set up the system of equations
demand <- q ~ p + d
supply <- q ~ p + f + a
inst <- ~ d + f + a
systemeq <- list( demand, supply )
...blah, blah, blah...
# get the number if instruments...
# or build the "bigX"...
#I
2010 Feb 09
1
lm combined with splines
Hello,
In the following I tried 3 versions of an example in R help. Only the two first predict command work.
After :
library(splines)
require(stats)
1)
fm1 <- lm(weight ~ bs(height, df = 5), data = women)
ht1 <- seq(57, 73, len = 200)
ph1 <- predict(fm1, data.frame(height=ht1)) # OK
plot(women, xlab = "Height (in)", ylab = "Weight (lb)")
lines(ht1, ph1)
2)
2006 Sep 15
2
Histogram of data with categorical varialbe
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20060915/8b4027b0/attachment.pl
2011 Feb 08
0
tsboot fails on Seasonal Mann-Kendall (seaKen function, wq package)
Dear R-users,
tsboot fails when I try to perform a block bootstrap on seaKen
(package wq):
these commands:
require(wq)
require(datasets)
boot.block.sen <- function(data){seaKen(data)[[1]]}
tsboot(sunspot.month, boot.block.sen, R=1999, l=12, sim="fixed")
return:
Error in seaKen(data) : x must be a 'ts'
Any suggestion on how might I change seaKen in order to use it with
2009 Jul 03
0
windrose (circular package) odd table and windrose plot
> R.version
_
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
status
major 2
minor 8.1
year 2008
2005 Nov 07
2
how to export density_function output?
Dear all,
quite a naive question: I have a data frame and I computed "the kernel
density estimate" with density on each column.
Now I'd like to export in a txt file the density function output for each
column, but, when if I use write.table, I get a message "Error in
as.data.frame.default(x[[i]], optional = TRUE) : can't coerce class
"density" into a
2006 Jun 23
1
Compiling R 2.3.1 on SuSE 8.2 and 10.0: error with libRlapack.so (PR#9026)
--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
I compiled R 2.3.1 on two SuSE systems.
With SuSE 8.2 I got an error which I had not on SuSE 10:
/usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: cannot find -lRlapack
On both system libRlapack.so is made, but the size is verz different:
SuSE 8.2: -rwxr-x--- 1 wf sys
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
AUTHORS | 17 ++++++
README | 10 +++
conf/ovirt-agent | 12 ++++
conf/ovirt-db-omatic | 12 ++++
conf/ovirt-host-browser | 12 ++++
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list.
I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without
modifications.
How did I try it?
Created a (non-root) build environment (not a mock )
Installed the kernel.scr.rpm and did a
rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee
prep-out.log
The build failed at the end:
Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL
Checking
2005 Nov 16
0
Friedman test with replicated samples
Dear R-users,
I would need to do a Friedman test with replicated samples, and
Friedman.test(y...) currently works only for unreplicated designs.
Is there a script or a function available?
Thanks,
Alessandro
--
--