Displaying 20 results from an estimated 300 matches similar to: "Threshold vector error correction models"
2004 Dec 13
3
Advice on parsing formulae
Dear list
I would like to be able to group terms in a formula using a function that I
will call tvar(), eg. the formula
Y ~ 1 + tvar(x:A) + tvar(z) + u + tvar(B) + tvar(poly(v,3))
where x,u and v are numeric and A and B are factors - binary, say.
As output, I want the model.matrix as if tvar had not been there at all. In
addition, I would like to have information on the grouping, as a vector
2010 Jun 25
6
Export Results
Hi R users,
How can I automatically export results and graphs to a file?
Thanks in advance
Pedro Mota Veiga
--
View this message in context: http://r.789695.n4.nabble.com/Export-Results-tp2268622p2268622.html
Sent from the R help mailing list archive at Nabble.com.
2000 Jul 19
1
How to use tcltk?
Hallo Tk experts,
the Tcl/Tk package allows to define very nice widgets for starting
R functions, for printing results and for interactive parameter input.
tkdensity.R and tkttest.R demonstrate this and both demos explain
how some of the tk functions can be used.
For constructing new widgets I would like to see further examples
showing Tcl/Tk package in action. Therefore my question:
Is there a
2007 Nov 13
2
Plot segments with different colors
Hello Everybody,
I'm trying to plot(x,y) using different colors.
I have to cut (x,y) into sub intervals.
And I want to plot this sub intervals using colors. But infortunally I don't
know how to do this with R.
Can any body help me please?
My code is looking like :
x<-c(tvar[1:t0],tvar[t0:(ts)],tvar[ts:n])
F<-c(var[1:t0],var[t0:(ts)],var[ts:n])
plot(x,F,xlab="Zeit
2008 Jul 04
2
create a zero matrix & fill
Dear R user,
I have written a function which returns max,min and variation of a power
(see below)
Power is a given matrix(1,n)
I call the function
>Variation<-VAR(p,(n-deltat))
Now the problem is when I want plot(Results[1],Results[2]). Not possible!
I become the following error (in english it means: Error in
as.double.default(x) :Object cannot be transformed in double)
>
2008 Mar 03
3
Plot using colors
Dear R users,
I have a problem since I try to plot my datas with different colors.
plot(tvar, var, xlab="zeit [s]",ylab="Variation [%]", col = ifelse(var <=
varstability, 'green','red'))
this works well!
But since I add a type="l" to my plot, it will color all the plot with
green!!!
Is there any solution? I avoid to use teachingDemos.
Thanks.
--
2017 Jul 12
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Paul,
Sounds like you have your answer, but for fun I thought I'd try solving your problem using only a regular expression query and base R. I believe this works:
> txt <- "Patient had stage IV breast cancer. Nothing matches this sentence. Metastatic and breast match this sentence. French bike champion takes stage IV victory in Tour de France."
> pattern <-
2017 Jul 11
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hello All,
I need some help figuring out how to extract combinations of target words/terms from cancer patient text medical records. I've provided some sample data and code below to illustrate what I'm trying to do. At the moment, I'm trying to extract sentences that contain the word "breast" plus either "metastatic" or "stage IV".
It's been some
2017 Jul 12
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Bert,
Thanks for your reply. It appears that I didn't replace the variable name "sampletxt" with the argument "x" in my function. I've corrected that and now my code seems to be working fine.
Paul
________________________________
From: Bert Gunter <bgunter.4567 at gmail.com>
Cc: R-help <r-help at r-project.org>
Sent: Tuesday, July 11, 2017 2:00 PM
2008 Apr 14
1
Non-linearity with Parametric data
Hello,
I am trying to test for non-linearity in a set of non-parametric data.
Furthermore, I would like to do so in a multi-variate model. Frankly, I
don't even know if this is possible, and if it is possible, I don't know if
it is implemented in an R package. Any advice would greatly appreciated.
Thank you!
Charlie
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles G.
2017 Jul 13
1
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Hi Robert,
Thank you for your reply. An attempt to solve this via a regular expression query is particularly helpful. Unfortunately, I don't have much time to play around with this just now. Ultimately though, I think I would like to implement a solution something along the lines of what you have done. I have a book on regular expressions that I am now starting to read. In the meantime, the
2017 Jul 11
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
Have you looked at the CRAN Natural Language Processing Task View? If not,
why not? If so, why were the resources described there inadequate?
Bert
On Jul 11, 2017 10:49 AM, "Paul Miller via R-help" <r-help at r-project.org>
wrote:
> Hello All,
>
> I need some help figuring out how to extract combinations of target
> words/terms from cancer patient text medical
2008 Jul 04
1
initialize a matrix
Dear R users,
I'm trying to write a function which returns minimum,maximum,mean of a
vector(power)
I've done the following :
VAR<-function(power,length){
for(i in tml:length)){
tvar[i]<-i
pmean[i]<-mean(power[i:i+deltat])
pmin[i]<-min(power[i:i+deltat])
pmax[i]<-max(power[i:i+deltat])
varmax[i]<-100*(pmax[i]-pmean[i])/pmean[i]
2010 Jan 09
2
Functions for QUAIDS and nonlinear SUR?
Hi,
I would like to estimate a quadratic almost ideal demand system in R which is estimated usually by nonlinear seemingly unrelated regression. But there is no such function in R yet but it is readily available in STATA (nlsur), see B. Poi (2008): Demand-system estimation: Update, Stata Journal 8(4).
Now I am thinking, what is quicker learning to "program" STATA which seems not really
2008 Apr 04
1
Problems with Unit Root testing using ur.df function
Hi All,
I'm new to R and am trying to run a unit root test on the vector "y" (a time
series of inflation (i.e. changes in the Consumer Price Index quarter on
quarter)).
I've run the Augmented-Dickey-Fuller Test below (R's URCA package). It gives
me an error that it cannot find the function ur.df unless I comment out the
third last line of code (see below).
I try to call
2009 Dec 15
0
Corrado's Rank Test implemented in R?
Dear R users.
Does anyone know a package where the non-parametric rank test from Corrado (A nonparametric test for abnormal security-price performance in event studies, Charles J. Corrado, 1989, Journal of Financial Economics) for event studies is implemented?
Sincerely
Andreas.
__________________________________________________
Do You Yahoo!?
hutz gegen Massenmails.
http://mail.yahoo.com
2014 Jul 11
0
Aktualіѕіегung dеѕ Κоntоѕtatus. Аntwοгt егfοгderlich
Wir haben in Ih??m ???P?l-??nto ungew?hnliche ??t?vit?ten f??tg?stellt.
Guten Tag!
Zum S?hutz Ihr?? ??ntos kann niemand Geld senden oder Geld ?bbuchen. Au?erdem kann niemand B?n???nten entfernen, Kr?d?t?art?n ?ntfernen, R?ckzahlungen senden, od?? ??nto schlie?en.
Hat jemand ohne Ihr Wissen Ih? ???Pal-??nto
2008 Dec 16
1
Cointegration and ECM in Package {urca}
Dear R Core Team,
I am using package {urca} to do cointegration and estimate ECM model,
but I have the following two problems:
(1) I use ca.jo() to do cointegration first and can get the
cointegration rank, alpha and beta. The next step is to test some
restrictions on beta with blrtest(),bh5lrtest(), and bh6lrtest(). But
none of them can add restrictions on all the cointegration
2005 Nov 19
3
cointegration rank
Dear R - helpers,
I am using the urca package to estimate cointegration relations, and I
would be really grateful if somebody could help me with this questions:
After estimating the unrestriced VAR with "ca.jo" I would like to impose
the rank restriction (for example rank = 1) and then obtain the
restricted estimate of PI to be utilized to estimate the VECM model.
Is it possible?
It
2009 Jul 26
0
Version 0.7 of package tsDyn, nonlinear time series
Hi
Version 0.7 of package tsDyn presented at useR! 2009 is now on CRAN,
extended with several new features.
The package tsDyn is aimed at estimating nonlinear time series models
which exhibit regime specific properties. The regime switching dynamics
can either be described by smooth transition (STAR and LSTAR) or
threshold effects (SETAR). The package furthermore offers nonlinear
models