Displaying 19 results from an estimated 19 matches similar to: "Help: A application error and failed just-in-debugging."
2005 Oct 25
0
One more about Error in step() (or stepAIC) for Cox model
Thank you for Prof.Ripley's suggestion. I fixed the program by adding a
lower scope, and the program ran, but I still got warning messages, and
don't know what is going on, would this affect my results?
...
Step: AIC= 12337.74
Surv(tlfup, cen) ~ MI[[j]]$trt + MI[[j]]$agem40 + MI[[j]]$agem40sq +
mhtypeed1 + mhtypeed2
Df AIC
<none> 12338
-
2005 Oct 24
1
Error in step() (or stepAIC) for Cox model
Hello all,
I am trying to use stepwise procedure to select covariates in Cox model
and use bootstrap to repeat stepwise selection, then record how many
times variables are chosen by step() in bootstrap replications. When I
use step() (or stepAIC) to do model selection, I got errors. Here is the
part of my code
for (j in 1:mm){ #<--mm=10
for (b in 1:nrow(reg.bs)){ #<--bootstrap 10
2005 Oct 04
0
The error message in package Mix
Hi all,
When using package MIX, I often get the error: NA/NaN/Inf in foreign
function call (arg 1).
For example,
> s<-prelim.mix(Y,6)
Error in prelim.mix(Y, 6) : NA/NaN/Inf in foreign function call (arg 1)
or when I ran:
MI<-vector("list",5) #<--vector of complete data after MI
fit.model.mi<-vector("list",5)
rngseed(1234567) #<-- set random number
2007 Jul 12
1
mix package causes R to crash
Dear Professor Schaefer
I am experiencing a technical difficulty with your mix package.
I would appreciate it if you could help me with this problem.
When I run the following code, R 2.5.1 and R 2.6.0 crashes.
It's been tested on at least 2 windows machine and it is consistent.
Execution code it's self was coped from the help file of imp.mix.
Only thing I supplied was a fake dataset.
2004 Dec 16
1
help with multiple imputation using imp.mix
I am desperately trying to impute missing data using 'imp.mix' but always
run into this yucky error message to which I cannot find the solution. It's
the first time I am using mix and I'm trying really hard to understand, but
there's just this one step I don't get...perhaps someone knows the answer?
Thanks!
Jens
My code runs:
2009 Apr 22
1
Multiple imputations : wicked dataset ? Wicked computers ? Am I cursed ? (or stupid ?)
Dear list,
I'd like to use multiple imputations to try and save a somewhat badly
mangled dataset (lousy data collection, worse than lousy monitoring, you
know that drill... especially when I am consulted for the first time
about one year *after* data collection).
My dataset has 231 observations of 53 variables, of which only a very
few has no missing data. Most variables have 5-10% of
2011 Aug 18
3
Error message: object of type 'closure' is not subsettable
Dear R-users
I need to calibrate kappa, rho, eta, theta, v0 in the following code, see
below. However when I run it, I get:
y <- function(kappahat, rhohat, etahat, thetahat, v0hat) {sum(difference(k,
t, S0, X, r, implvol, q, kappahat, rhohat, etahat, thetahat, v0hat)^2)}
> nlminb(start=list(kappa, rho, eta, theta, v0), objective = y, lower =lb,
> upper =ub)
Error in dots[[1L]][[1L]] :
2003 Jun 14
1
Missing data augmentation
Hi all,
A short while ago I asked a question about multiple imputation and I
got several helpful replies, thanks! I have untill now tried to use the
packages mice and norm but both give me errors however.
mice does not even run to start with and gives me the following error
right away:
iter imp variable
1 1 Liquidity.ratioError in chol((v + t(v))/2) : the leading minor
of order 1 is not
2005 Jul 08
2
missing data imputation
Dear R-help,
I am trying to impute missing data for the first time using R. The norm
package seems to work for me, but the missing values that it returns seem
odd at times -- for example it returns negative values for a variable that
should only be positive. Does this matter in data analysis, and/or is
there a way to limit the imputed values to be within the minimum and
maximum of the actual
2005 Oct 24
0
In da.norm Error: NA/NaN/Inf in foreign function call (arg 2)
I am conducting a simulation study generating multivariate normal data,
deleting observations to create a
data set with missing values and then using multiple imputation via
da.norm in Schafer's norm package.
>From da.norm, I get the following error message: "Error: NA/NaN/Inf in
foreign function call (arg 2)"
The frequency of the error message seems to depend on the ratio of n
2010 Feb 17
1
Ordered Logit in R
I'm trying to run an ordered logistic regression model. I've run the following code, but the output does not provide the p-values. Is there some command to include the p-values in the output.
reg2 <- polr(trade1 ~ age2 + education2 + personal2 + economy2 + partisan2 + employment2 + union2 + home2 + market2 + race2 + income2)
summary(reg2)
Re-fitting to get Hessian#
Call:
2011 Feb 01
1
dotchart {graphics} 2.11.1 vs. 2.12.1
I have a factor vector of subject races (Asian, Black, Hispanic, White; n=30) that I want to plot with a Cleveland dotplot or dotchart.
I tried the following in R2.12.1 :
> dotchart(table(school$Race))
Error in plot.xy(xy.coords(x, y), type = type, ...) : invalid plot type
Using the same data set in R2.11.1 the operation succeeded (I tried several variations to be sure):
>
2011 Nov 24
2
da.norm function
Hello all
I'm running da.norm function in R for climate data
rngseed(1234567)
theta1=da.norm(mydata, thetahat, steps=1000,showits=T)
param1=getparam.norm(mydata,theta1)
As I understand the 1000 steps represent the markov chain values. Is there
a way to plot them? Something like plot(1:1000, param1$mu[]). I just can't
find a way to extract them out of my theta1.
Thank you, Andrey.
2004 Aug 26
1
EM norm package (NA/NaN/Inf in foreign function call (arg 2))
Greetings!
I am bootstrapping and I am using EM in the norm package to fill in missing
data for a financial time series with each step of the loop. For the most
part EM works fine for me, but the following error message is guaranteed
before I hit the 200th scenario:
Iterations of EM:
1...2...3........348...349...Error: NA/NaN/Inf in foreign function call
(arg 2)
The following code should
2007 Oct 01
0
Clustering literature was Re: nonlinear regression
Hi
It is preferable to echo your posts to r-help, you usually get more
answers and some definitelly superb to mine.
It is also better to start a new mail if your question has nothing to do
with original subject
"Maura E Monville" <maura.monville at gmail.com> napsal dne 01.10.2007
17:44:43:
> Unluckily I do not have the privilege of practising with R all day
> long. I
2008 Dec 08
1
DLM - Covariates in the system equation
Is there a way to add covariates to the system equation in a time-varying
approach:
Y[t] = F'[t]theta[t] + v[t], v[t] ~ N[0,V] #observation equation
theta[t] = theta[t-1] + psi*Z[t] + w[t], w[t] ~ N[0,W] #system equation
While F[t] is a matrix of regressors to capture the short term effect on
the response series Y,
Z[t] measures the long-term effect of either
(1) two policies by a step
2008 Jul 21
5
Coefficients of Logistic Regression from bootstrap - how to get them?
Hello all,
I am trying to optimize my logistic regression model by using bootstrap.
I was previously using SAS for this kind of tasks, but I am now
switching to R.
My data frame consists of 5 columns and has 109 rows. Each row is a
single record composed of the following values: Subject_name, numeric1,
numeric2, numeric3 and outcome (yes or no). All three numerics are used
to predict
2006 Mar 28
3
fixed effects
dear R wizards:
X is factor with 20,000*20=800,000 observations of 20,000 factors.
I.e., each factor has 20 observations. y is 800,000 normally
distributed data points. I want to see how much R^2 the X factors can
provide. Easy, right?
> lm ( y ~ X)
and
> aov( y ~ X)
Error: cannot allocate vector of size 3125000 Kb
is this computationally infeasible? (I am not an expert, but
2005 Aug 16
1
A question about MIX package
Hello all,
When I used commands "ecm.mix and dabipf.mix" to do a simulation (sample size is small 100), I got an error : Steps of ECM, missing value where True/False needed.
I've checked the menu, and the option "prior" of ecm.mix said that if structural zeros appear in the table, hyperparameters for those cells should be set to NA. However, it didn't say how to do