Displaying 8 results from an estimated 8 matches for "rominger".
2008 Jul 11
2
Help with error in "if then" statement
...245.16<153.5 is "missing," or is anything other than TRUE/FALSE? Am I
using "if" incorrectly? In which case would it be more appropriate to
perhaps create subsets of the data points based on < or > ycrit?
Thanks in advance for any guidance--
Andy
--
Andrew J. Rominger
Department of Biological Sciences
Stanford University
rominger at stanford.edu
2008 Nov 21
1
different .Rprofile files for different projects
...modify it in an R session? If the latter, how do I go about writing a stub and making R recognize it as a working directory, and what is a session directory/how can I find where the default session directory is located?
Again, my apologies for being naive, and thanks very much for any help--
Andy Rominger
2009 Mar 03
1
Error loading packages at sprintf()
...was corrected by specifying type="source", but I'm not really sure how to properly specify the argument 'lib' and so leave it as it's default value. Without specifying 'lib' is it appropriate to call type="source"?
Thanks in advance for any help--
Andy Rominger
2007 Oct 03
2
Shading area under density curves
Hello,
I have a question regarding shading regions under curves to display
95% confidence intervals. I generated bootstrap results for the slope
and intercept of a simple linear regression model using the following
code (borrowed from JJ Faraway 2005):
> attach(allposs.nine.d)
> x<-model.matrix(~log(d.dist,10))[,-1]
> bcoef<-matrix(0,1000,2)
> for(i in 1:1000){
+
2010 Apr 02
1
All sub-summands of a vector
Hello,
I'd like to take all possible sub-summands of a vector in the quickest and
most efficient way possible. By "sub-summands" I mean for each sub-vector,
take its sum. Which is to say: if I had the vector
x<-1:4
I'd want the "sum" of x[1], x[2], etc. And then the sum of x[1:2], x[2:3],
etc. And then...so on.
The result would be:
1 2 3 4
2 5 7
6 9
10
I can
2010 May 28
0
simulate time series with various "colors" of noise
...S, :
error in evaluating the argument 'x' in selecting a method for function
'as.vector'
If I am missing other useful functions for producing/estimating time series
of the fractional/long-memory type I would also welcome suggestions.
Thanks for your thoughts and insights!
Andy Rominger
[[alternative HTML version deleted]]
2010 Jan 28
2
Constrained vector permutation
Hello,
I'm trying to permute a vector of positive integers > 0 with the constraint
that each element must be <= twice the element before it (i.e. for some
vector x, x[i] <= 2*x[i-1]), assuming the "0th" element is 1. Hence the
first element of the vector must always be 1 or 2 (by assuming the "0th"
element is 1). Similarly, the 2nd must always be below/= 4, the
2010 Mar 24
0
R-help ordinal regression
...mple size for proportion, not binomial
> (Marc Schwartz)
> ? 75. Re: Optim() Help, Unusual Error (Nikhil Kaza)
> ? 76. Re: Setting breaks to data more appropriately
> (David Winsemius)
> ? 77. Bold greek letters using plotmath (Jim Price)
> ? 78. Diffusion entropy analysis (Andrew Rominger)
> ? 79. Re: Saving tab/csv delimited data with NaN's
> (Sharpie)
> ? 80. Plot ``freezes''. (Rolf Turner)
> ? 81. Re: Log linear model - Showing non-deviation
> form in glm()
> ? ? ? (Christoffer Karlsson)
> ? 82. Re: Saving tab/csv delimited data with NaN's
>...