Displaying 20 results from an estimated 1000 matches similar to: "Error in solve.default"
2004 Feb 03
1
Error in f(x, ...) : subscript out of bounds
R-Listers:
I am doing a quasi-maximum likelihood estimation and I get a "subscript
out of bound" error message, Typically I would think this means that a
subscript used in the function is literally out of bounds however I don't
think this is the case. All I change in the code is a constant, that is
hard-wired in (not data dependent and not parameter dependent),
furthermore,
2006 Dec 17
0
hblm program: porting from Splus to R
I am replying to the email below my signature;
it is nominally about dmp files, but apparently
specific to problems with Bill DuMouchel's
hblm program.
I have been using this program
on Splus for years, and ran into some of the
same problems Jack did in trying to get it into
R. I talked with Bill about it, and he didn't
know that there would be any problems; he
assumed that R was
2009 May 11
0
Partial correlation function required
---------- Forwarded message ----------
From: <r-help-bounces@r-project.org>
Date: Mon, May 11, 2009 at 10:24 PM
Subject: The results of your email commands
To: das.moumita.online@gmail.com
The results of your email command are provided below. Attached is your
original message.
- Results:
Ignoring non-text/plain MIME parts
- Unprocessed:
What is the function for partial
2006 Jul 25
1
HELP with NLME
Hi,
I was very much hoping someone could help me with the following.
I am trying to convert some SAS NLMIXED code to NLME in R (v.2.1),
but I get an error message. Does anyone have any suggestions?
I think my error is with the random effect "u" which seems to be
parametrized differently in the SAS code. In case it's helpful,
what I am essentially trying to do is estimate parameters
2009 Sep 04
2
lrm in Design package--missing value where TRUE/FALSE needed
Hi,
A error message arose while I was trying to fit a ordinal model with lrm() I am using R 2.8 with Design package.
Here is a small set of mydata:
RC RS Sex CovA CovB CovC CovD CovE
2 1 0 1 1 0 -0.005575280 2
2 1 0 1 0 1 -0.001959580 2
3 0 0 0 1 0 -0.004725880 2
0 0 0 1 0 0 -0.005504850 2
2 1 1 0 0 0 -0.003880170 1
2 1 0 0 1 0 -0.006074230 2
2 1 0 0 1 1 -0.003963920 2
2 1 0 0 1 0
2005 Jul 05
0
lowess output looks wrong (PR#7891)
Just noticed nobody has commented on this, so I took a look, and I can't
see the problem (2.1.0 looks the same as 2.1.1 to me). What is supposed
to be wrong?
Duncan Murdoch
On 5/23/2005 2:35 PM, pelzc at ohsu.edu wrote:
> Full_Name: Carl Pelz
> Version: 2.1.0 & 2.0.1
> OS: Windows 2000
> Submission from: (NULL) (137.53.64.158)
>
>
> # Paste this all into an R
2006 Nov 28
1
Can anyone read a S-PLUS .dmp file for me?
Hi WizaRds,
I tried reading the S-PLUS file
ftp://ftp.research.att.com/dist/bayes-meta/hblm.dmp
into R using
data.restore("hblm.dmp")
but I got an error:
Error in attributes(value) <- thelist[-match(c(".Data", ".Dim", ".Dimnames", :
row names must be 'character' or 'integer', not 'double'
In
2012 Apr 16
0
warning message: coxme with package multcomp
Hi
I'm encountering an error/warning when doing multiple comparisons with
the package multcomp on a coxme model.
My data:
I'm looking at the removal of brood from the nest according to three
treatments I applied on the brood.
The brood and the workers caring about the brood in the nest, belonged
to different colonies.
Factor: treatment (3 levels: tx,uv,meta)
Random effect 1: origin of
2005 Mar 09
1
Trouble with mixreg
Dear All
I am trying to estimate a mixture of regression and get the
following error using the mixreg package:
Error in y - yhat : non-conformable arrays
The instruction I used were:
x <- as.matrix(LRHUN)
y <- as.matrix(LRINTER)
TS <- list(list(beta=c(3.0,1.0),sigsq=1,lambda=0.4),
list(beta=c(0.0,1.0),sigsq=1,lambda=0.6))
prova <- mixreg(x,y, ncomp=2, theta.start=TS)
2007 Aug 31
3
data frame row manipulation
Hello,
struggling with the very basic needs... :( any help appreciated.
#using the package doBY
#who drinks how much beer per day and therefor cannot calculate rowise
maxvals
evaluation=data.frame(date=c(1,2,3,4,5,6,7,8,9),
name=c("Michael","Steve","Bob",
"Michael","Steve","Bob","Michael","Steve","Bob"),
2012 Jan 10
1
error in Recursive
Hi
I need help in the recursive problem. this is my code
#Generate two random Numbers
minval=20
maxval=100
cutoffValue=50
optVal<- function(cutoffValue,minval,maxval)
{
x=runif(2)
x=x*cutoffValue
for( i in 1:2)
{
if(x[i] < 30 || x[i] >60) # checking it falls between the range
{
optVal(cutoffValue,minval,maxval)
}
}
return(x)
}
2010 Mar 06
2
memory error in for loop
hi,
I have been attempting to run this script and am getting some strange
results. The script connects to a database and retrieves a series of
tables, using sequential sql statements. I have tested all of the sql
statements in the PostGreSQL terminal and they all return the desired
results. I place each table into a list and run a FOR loop for 'i' in
the list. The script generates
2001 Nov 20
0
Summary: non-negative least squares
Thank you Brian Ripley, Gardar Johannesson, and Marcel Wolbers for your
prompt
and friendly help! I will share any further learnings as I move through
these suggestions. -Bob Abugov
Brian Ripley wrote:
I just use optim() on the sum of squares with non-negativity constraints.
That did not exist in 1999.
Gardar Johannesson wrote:
You can always just use the quadratic programing library in R
2017 Nov 24
0
Using bartMachine with the caret package
Dave Langer in this video https://www.youtube.com/watch?v=z8PRU46I3NY
uses the titanic data as an example of using caret to create xgbTree
models. The caret train() function has a tuneGrid parameter which
takes a list set up like so:
tune.grid <- expand.grid(eta = c(0.05, 0.075, 0.1),
nrounds = c(50, 75, 100),
max_depth = 6:8,
2005 Dec 21
0
Help with Krige.conv using linear models
A majority of my data makes a kriged map perfectly using an exponential
model for the semivariogram to fit my data and then going through the
commands variofit() to define the model and then krige.conv() to use the
model to predict values in a grid. But?one set of my data appears to be
linearly correlated for the first 5000 meters and not correlated beyond
that. I have been having problems
2006 Feb 16
0
Calling R functions from C and setting function's formal list values
Hello,
I am writing an extension that requires the user to pass a function into
the C code. The function returns a covariance matrix. The user defines an
arbitrary set of parameters as the function's arguments, which are used to
construct this covariance matrix. Within the C code these parameters and
hence covariance matrix are iteratively updated.
The user's function might look like
2009 Sep 03
0
[LLVMdev] 2.6 pre-release1 ready for testing
On Thu, Sep 3, 2009 at 6:24 AM, Olivier
Meurant<meurant.olivier at gmail.com> wrote:
> Hi Tanya,
>
> I have tried the 2.6 pre-release on the following host :
>
> Windows XP pro SP2 with mingw/msys :
>
> uname -a
> MINGW32_NT-5.1 OLIVE 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
>
> gcc -v
> Reading specs from d:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
2006 Jul 11
2
Multiple tests on 2 way-ANOVA
Dear r-helpers,
I have a question about multiple testing.
Here an example that puzzles me:
All matrixes and contrast vectors are presented in treatment contrasts.
1. example:
library(multcomp)
n<-60; sigma<-20
# n = sample size per group
# sigma standard deviation of the residuals
cov1 <- matrix(c(3/4,-1/2,-1/2,-1/2,1,0,-1/2,0,1), nrow = 3, ncol=3, byrow=TRUE,
dimnames =
2006 Aug 03
1
question about dll crashing R
I have ported some R code to C to make it faster.
I can perform .Call("foobar",....) once and it
works fine. Absolutely correct answer.
If I put a loop inside foobar and run the main code
routine more than 100 times, it crashes R.
Or if I call .Call("foobar"....) seperately more than
two tims it crashes R.
For the most part I am doing matirx multiplies using
EXP
2007 Sep 04
4
Q: selecting a name when it is known as a string
I am 100% certain that there is an easy way to do this, but after
experimenting off and on for a couple of days, and searching everywhere I
could think of, I haven't been able to find the trick.
I have this piece of code:
...
attach(d)
if (ORDINATE == 'ds')
{ lo <- loess(percent ~ ncms * ds, d, control=loess.control(trace.hat =
'approximate'))
grid <-