similar to: Logistic/Cox regression: Parameter estimates directly from model matrix

Displaying 20 results from an estimated 1000 matches similar to: "Logistic/Cox regression: Parameter estimates directly from model matrix"

2010 Mar 17
3
Vector multiplication
Hi, this may sound stupid (and it probably is), but I can't seem to find out how to multiply each element of a vector with each element of another vector where the result would be a matrix of dim[length(vectorOne),length(vectorTwo)] without using loops. example: if a -> c(1,2,3) b -> c(4,5,6) i'm looking for the operation that would yield: [,1] [,2] [,3] [1,] 4 8
2001 Sep 27
1
list of all objects - just being curious
Hello all, to obtain a list of all objects in all search paths, I've found the following to work: > biglist <- sapply(1:length(search()), objects) This more obvious one, however, does not work: > biglist <- sapply(search(), objects) Error in pos.to.env(pos) : invalid argument Still, search() gives [1] ".GlobalEnv" "package:ctest" "Autoloads"
2001 Dec 19
2
How to create a data.frame "like" another, but longer?
Hello, does anyone know of a quick way to create a data frame "like" another, but with more rows? What I'd like to do is this: if mydata is a data.frame like a b c 1 TRUE yes 2 FALSE no 3 TRUE yes I'd like to get mydata2 with the same column names and column types, but without the values and with more rows. All I could think of was to manually do
2000 Jun 23
1
Re: undocumented behaviour of recordPlot (PR#578)
On Thu, Jun 22, 2000 at 05:01:32PM +0200, p.dalgaard@biostat.ku.dk wrote: > I think this is pretty certainly a bug, so I'm cc'ing this to r-bugs. > > -p > > Kaspar Pflugshaupt <pflugshaupt@geobot.umnw.ethz.ch> writes: > > As the documentation states, when I generate a plot and save it with > > recordPlot, I can regenerate it by printing the variable:
2000 Jun 23
1
Re: undocumented behaviour of recordPlot (PR#578)
On Thu, Jun 22, 2000 at 05:01:32PM +0200, p.dalgaard@biostat.ku.dk wrote: > I think this is pretty certainly a bug, so I'm cc'ing this to r-bugs. > > -p > > Kaspar Pflugshaupt <pflugshaupt@geobot.umnw.ethz.ch> writes: > > As the documentation states, when I generate a plot and save it with > > recordPlot, I can regenerate it by printing the variable:
2002 Apr 04
1
html documentation bug in: help(par), 'las'
Currently (R-1.4.1 as well as R-devel, according to http://stat.ethz.ch/R-alpha/R-devel/library/base/html/par.html), the html version of help(par) shows [...] lab A numerical vector of the form c(x, y, len) which modifies the way that axes are annotated. The values of x and y give the (approximate) number of tickmarks on the x and y axes and len specifies the label size. The default
2002 Feb 04
1
Installing contributed packages on MacOS X: Solved!
I had run into problems when compiling some contributed packages to an installation of R 1.40 by fink on MacOS X. Namely, packages KernSmooth (2.22-7) and cluster (1.4-0) would not find required libraries, though those were present on the system. Jeff Whitaker, the maintainer of the R fink packages, kindly sent me this: > Kaspar: It's not looking in /sw/lib, where the libs are (the
2001 Aug 28
2
Estimating Weibull Distribution Parameters - very basic question
Hello, is there a quick way of estimating Weibull parameters for some data points that are assumed to be Weibull-distributed? I guess I'm just too lazy to set up a Maximum-Likelihood estimation... ...but maybe there is a simpler way? Thanks for any hint (and yes, I've read help(Weibull) ;) Kaspar Pflugshaupt -- Kaspar Pflugshaupt Geobotanical Institute ETH Zurich, Switzerland
2000 May 09
1
Type III Sums of Squares?
Hello, I'd like to propose an extension to the function summary.aov. In Splus (2000, I don't know about other versions), summary.aov allows a parameter ssType to be set to 1 or 3 (defaults to 1) to choose the type of Sums of Squares. I know I can get Type III SS in R with drop1(model), but including the functionality into summary.aov would, in my opinion, - yield a more usable table
2006 Jan 10
2
DBDesigner4 to AR model (script)
Hi list, I have hacked together a small script to generate an ActiveRecord model from a DBDesigner 4 (fabForce.net) model file. Take it apart and feed it to the pigs ;). the article: http://tua.ch/ruby/current.html and the script: http://tua.ch/ruby/dbmodel/compute_model.rb best of whishes for the new year, kaspar code manufacture & ruby lab at http://www.tua.ch/ruby
2000 Jun 22
1
R 1.1 congrat; undocumented behaviour of recordPlot
Hello, first, I'd like to congratulate the core team to the new R version 1.1. I think it's a great update, with glimpses into an even greater future (tcltk!). While playing around with the new functions (on Win 95), I found the following: As the documentation states, when I generate a plot and save it with recordPlot, I can regenerate it by printing the variable: > plot(1:10) >
2000 Mar 22
4
density ellipses?
Hello, has anybody written a function to plot density ellipses (95%, 99% or anything) in a scatterplot? I found nothing in any package, nor in the list archives. There does seem to be a contributed package "ellipse" for S-Plus (on S-Archive), but it does a lot more than what I would need. Still, if anybody ported it to R, I'd be grateful for a link. I'm a bit afraid to try the
2001 Oct 18
1
Fw: eval and as.symbol question
----- Original Message ----- From: "Kaspar Pflugshaupt" <pflugshaupt at geobot.umnw.ethz.ch> To: "Gary Collins" <gco at eortc.be> Cc: "r-help" <r-help at stat.math.ethz.ch> Sent: Thursday, October 18, 2001 2:19 PM Subject: Re: [R] eval and as.symbol question > On 18.10.2001 13:46 Uhr, Gary Collins wrote: > > > But when I merge these
2000 Feb 25
2
partial correlation coefficients in R?
Hello, after thorough searching of the R help files as well as S+-help, I'm coming to the list: Is there a possibility to compute partial correlation coefficients between multiple variables (correlation between two paired samples with the "effects of all other variables partialled out")? All I seem to find are the standard Pearson correlation coefficients (with cor()) and no clue
2002 Jan 31
1
MacOS X: Packages KernSmooth and cluster won't compile
Hello, I'm using R 1.40 on MacOS X X.1.2 (installed via the fink package manager). To upgrade my installed packages, I tried to use update.packages() today. All went well for most packages, with the exception of KernSmooth and cluster. In both cases, libraries were not found although I think they are present. Here's what happened: ---------------------------------- >
2006 Aug 22
6
Mongrel crashes - bad doggie
Hello List, I have a production machine with very low ram (Xen Virtual Server) that runs mysql and lighty->pound->mongrel (2 instances). About once a day, one of the mongrels just locks up, leaving that in its log files: *** glibc detected *** /usr/bin/ruby: free(): invalid next size (fast): 0x0a744780 *** That process (mongrel) will stay locked, not answer any connections anymore and
2006 Oct 22
1
--user and --group switch broken in TRUNK
It seems that a recent code cleanup broke --user and --group switch in the trunk. Mongrel essentially ignores these commands. This applies to everyone who has installed gem install mongrel --source=http://mongrel.rubyforge.org/releases/ recently. I have attached a patch to revert to some old working code. best regards, kaspar -------------- next part -------------- An embedded and
2001 Feb 08
2
Test for multiple contrasts?
Hello, I've fitted a parametric survival model by > survreg(Surv(Week, Cens) ~ C(Treatment, srmod.contr), > data = poll.surv.wo3) where srmod.contr is the following matrix of contrasts: prep auto poll self home [1,] 1 1 1.0000000 0.0 0 [2,] -1 0 0.0000000 0.0 0 [3,] 0 -1 0.0000000 0.0 0 [4,] 0 0 -0.3333333 1.0 0 [5,] 0 0
2000 Mar 09
1
For the record: how to merge data frames vertically
Hello, to save searching time in the S-news archive, here is the simple solution to merge data frames vertically (cols must be equivalent, of course). The frames must be components of a list, such as produced by framelist<-split(bigframe,factor). bigframe2<-do.call("rbind",framelist) # posted to S-news by Bill Venables, found in summary message
2000 Oct 21
1
scale() and NA values
Hello, I've a question concerning the behaviour of the "scale" function in the base package. I'm using R 1.1.1 on Windows 95. If I take a matrix with NA values, such as > tm <- matrix(c(2,1,0,1,0,NA,NA,NA,0), nrow=3) > tm [,1] [,2] [,3] [1,] 2 1 NA [2,] 1 0 NA [3,] 0 NA 0 and scale it, the columns containing NAs come out all NA: >