Displaying 20 results from an estimated 700 matches similar to: "Non-Linear Regression Problem"
2005 Mar 11
2
Calculating lengths of runs of 0 or 1 sequences in meteorological data
Dear List Members,
I need some help about programming in S language. My
problem is as follows:
I have meteorological data (about rainfall measurement
each day from 1989-2002), say like
http://www.angelfire.com/ab5/get5/data.rainfall.txt
or http://www.angelfire.com/ab5/get5/R.rainfall.txt
in a sequence of 0(denoting dry day)'s and 1(denoting
wet day)'s. I want to construct a frequency
2004 Apr 16
5
Non-Linear Regression (Cobb-Douglas and C.E.S)
Dear all,
For estimating Cobb-Douglad production Function [ Y = ALPHA * (L^(BETA1)) *
(K^(BETA2)) ], i want to use nls function (without linearizing it). But
how can i get initial values?
------------------------------------
> options(prompt=" R> " )
R> Y <- c(59.6, 63.9, 73.5, 75.6, 77.3, 82.8, 83.6, 84.9, 90.3, 80.5,
73.5, 60.3, 58.2, 64.4, 75.4, 85, 92.7, 85.4,
2005 Jun 22
2
r programming help
Dear list,
Is there anyway i can make the following formula short
by r-programming?
CYCLE.n<-c(NA,
WET[1]*DRY[1],
WET[1]*DRY[2]+WET[2]*DRY[1],
WET[1]*DRY[3]+WET[2]*DRY[2]+WET[3]*DRY[1],
WET[1]*DRY[4]+WET[2]*DRY[3]+WET[3]*DRY[2]+WET[4]*DRY[1],
WET[1]*DRY[5]+WET[2]*DRY[4]+WET[3]*DRY[3]+WET[4]*DRY[2]+WET[5]*DRY[1],
2002 Mar 13
2
MASS Library
Hi,
I was just trying out an example on Page 247 of the MASS (Modern Applied
Statistics with S-plus) book and saw the function "negexp.ival".
It says it is supplied in the MASS library, however when I load the
library in R and typed:
negexp.ival
it says:
Error: Object "negexp.ival" not found
Does it mean it only appears in the MASS library for S-plus?
2004 Apr 05
3
Selecting Best Regression Equation
Dear all,
Does R or S-plus or any of their packages provide any command to form any
of the following procedures to find Best Regression Equation -
1. 'All Possible Regressions Procedures' (is there any automated command
to perform 2^p regressions and ordering according to criteria R2(adj),
mallows Cp, s2- by not setting all the regression models manually),
2. 'Backward
2004 May 06
5
Orthogonal Polynomial Regression Parameter Estimation
Dear all,
Can any one tell me how can i perform Orthogonal
Polynomial Regression parameter estimation in R?
--------------------------------------------
Here is an "Orthogonal Polynomial" Regression problem
collected from Draper, Smith(1981), page 269. Note
that only value of alpha0 (intercept term) and signs
of each estimate match with the result obtained from
coef(orth.fit). What
2004 Mar 01
3
Nonparametric test of randomness (Run Test)
Dear all,
Does R or S-plus or any of their packages provide
Non-parametric "Run test" (which tests whether a
sequence of numbers might be random or not)? If yes,
i'd like a numerical illustration of this test.
Any response / help / comment / suggestion will be
greatly appreciated. Thanks in advance.
-------------------------------
Mohammad Ehsanul Karim <wildscop at
2003 Dec 26
2
OC curve in "Quality Control"
Dear all,
Can anyone please help me about any of the following questions:
--------------------------------------------
1. How can i find "factorial" of any number in R? I tried
> prod(170:1) # to find factorial of 170 or 170!
Is it the only procedure - or R has any better process / operational
character to calculate factorial? Also, is it possible to calculate
factorial of 500? Or
2003 Nov 17
3
S Programming
Dear all,
I am thinking of writing my own functions in s-plus (or in R). I just
know how to work with S-plus / R built-in functions. Therefore, I'm a
beginner in S programming.
I am looking for some on-line documentation that is well written about
"Programming in S language" where control stuctures / loops / vectorization
and necessery sequences of S programming are
2007 Apr 17
3
Extracting approximate Wald test (Chisq) from coxph(..frailty)
Dear List,
How do I extract the approximate Wald test for the
frailty (in the following example 17.89 value)?
What about the P-values, other Chisq, DF, se(coef) and
se2? How can they be extracted?
######################################################>
kfitm1
Call:
coxph(formula = Surv(time, status) ~ age + sex +
disease + frailty(id,
dist = "gauss"), data = kidney)
2007 May 03
2
Single Title for the Multiple plot page
Dear List,
In R we can plot multiple graphs in same page using
par(mfrow = c(*,*)). In each plot we can set title
using main and sub commands.
However, is there any way that we can place an
universal title above the set of plots placed in the
same page (not individual plot titles, all i need is a
title of the whole graph page) as well as sib-titles?
Do I need any package to do so?
Thank you
2005 Mar 20
1
"Graphics (for goodness of fit)" Question
Dear List,
Suppose, I have some observed and expected
frequencies, such as following.
I need to draw a graph where plots of observed and
expected frequencies are merged into one.
------------------------------------------------
m <- c(1,2,3,4,5,6,7,8,9,10,12,13,17)
k <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 19)
ExpWW <- c(0.309330628803245, 0.213645190887434,
0.147558189649435,
2011 Sep 12
1
coxreg vs coxph: time-dependent treatment
Dear List,
After including cluster() option the coxreg (from eha package)
produces results slightly different than that of coxph (from survival)
in the following time-dependent treatment effect calculation (example
is used just to make the point). Will appreciate any explaination /
comment.
cheers,
Ehsan
############################
require(survival)
require(eha)
data(heart)
# create weights
2005 Jun 08
1
Fitting Theoretical Distributions to Daily Rainfall Data
Dear List Members,
I need a bit help about fitting some theoretical
distributions (such as geometric, exponential,
lognormal or weibull distribution) to the following
*dry spell*, *wet spell*, *cycles (Wet-Dry or
Dry-Wet)* from my meteorological (daily rainfall) data
http://www.angelfire.com/ab5/get5/R.rainfall.txt only
for rainy seasen (july - september) of 14 years only:
2007 Apr 20
1
Hiding "Warning messages" in coxme output
Dear list,
I have been trying to use coxme in R 2.3.1.
When I use coxme in the following data sim.fr1, i get
"Warning messages: using 'as.environment(NULL)' is
deprecated"
Why does it occur?
How can I hide such warning message,
especially when coxme is under a loop?
Mohammad Ehsanul Karim (Institute of Statistical
Research and Training, University of Dhaka)
>
2003 Jun 26
1
Residual plotting
Dear all,
So far i could do (in an informal way) to draw a Standardized Resisual plot
in the following way-
---------------------
>x <- c(104.1, 106.6, 105.5, 107.5, 109.6, 113.3, 115.5, 117.7, 119.9,
122.1, 124.3, 126.5, 128.2)
>y <- c(53732, 52912, 57005, 61354, 67682, 71602, 71961, 75309, 82931,
93310, 102161, 103068, 108927)
>
2007 Apr 11
1
Programming Problem (for loop, random # control, 3 dimentional graph)
Dear List,
This is just a programming problem which i cannot seem
to figure out. I am trying to get a set of power from
a test (say, kolmogorov smirnov) out of a distribution
(say, G-K distribution) as follows. I am trying to
reduce to pain of writing the whole set of data points
(p# below) using "for" loop. However, I seem to have
some problem in it as the output "M" does not
2007 Jun 07
2
[LLVMdev] How to call native functions from bytecode run in JIT?
Hello,
can anyone help me calling native functions from LLVM-Bytecode
functions run in the JIT?
I have a program which creates an LLVM execution engine and adds
modules and functions
to it on the fly. I need to call some native functions of my program
from bytecode functions which causes some troubles as it appears not
to be documented. My test scenario works like the following:
I have
2007 Jun 13
5
[LLVMdev] How to call native functions from bytecode run in JIT?
Hi,
I was able to try this on linux again. Unfortunately it doesn't work
at all (neither using runFunction nor a CallInst). It simply says
function called get5 not known. Calling printf the same way works,
though. On linux the function is exported as "get5" from the
executable while it is called "_get5" on OS X. I could not spot any
other differences.. any
2012 Mar 04
1
Could not compute QR decomposition of Hessian.
Hi,
I created the model below, which returns me the following warning message:
In sem.default(ram = ram, S = S, N = N, param.names = pars, var.names =
vars, :
Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
######### Model ########
mDPDF =
data.frame(mj1,mj2,mj3,mj4,mj5,eL1,eL2,eL3,eL4,eL5,aC1,aC2,aC3,aC4,disR1,disR2,disR3,disR4,disR5,