Displaying 20 results from an estimated 10000 matches similar to: "offset with a factor"
2009 Oct 09
2
weigths in nls (PR#13991)
Potential bug:
I mistyped weights in the call ('weigths') and it did not produce any error=
message. The coefs were exactly the same like without weights, so I was su=
spicious and when weights(nls1) gave NULL, I saw my typo.
Usually the function will say "Unused arguments", which shows you the error=
, but not nls.
Regards
Stephen
[[alternative HTML version deleted]]
2017 Nov 10
3
update R version in windows
Is there a utility which will allow me to upgrade my R version and update all packages from the old version?
If I manually upgrade, then I have to manually re-install 50 packages.
Thank you.
Stephen B
[[alternative HTML version deleted]]
2011 May 12
1
strength of seasonal component
Hi All,
a) Is it possible to estimate the strength of seasonality in timeseries
data. Say I have monthly mean prices of an ten different assets. I decompose
the data using stl() and obtain the seasonal parameter for each month. Is it
possible to order the assets based on the strength of seasonality?
b) which gives a better estimate on seasonality stl() or a robust linear
model like
2009 Dec 06
1
R ANOVA question
Hi All,
I'm fitting an intercept ANOVA model using R. I'm using following contrast
statement, so my first level is considered as base level.
options(contrasts = c("contr.treatment", "contr.treatment"))
My data has two factors are "Month" and "WeekDay". Due to default alphabetic
ordering, the Month(April) and WeekDay(Friday) are considered as base
2004 Jul 01
2
[gently off topic] arima seasonal question
Hello R People:
When using the arima function with the seasonal option, are the seasonal
options only good for monthly and quarterly data, please?
Also, I believe that weekly and daily data are not appropriate for seasonal
parm estimation via arima.
Is that correct, please?
Thanks,
Sincerely,
Laura Holt
mailto: lauraholt_983 at hotmail.com
download!
2011 Jun 15
1
Query regarding auto arima
I am using AUTO ARIMA for forecasting. But it is not detecting 'seasonality
term' of its own for any data.
Is there any other method by which we can detect seasonality and its
frequency for any data?
Is there any method through which seasonality and its frequency can be
automatically detected from ACF plot?
--
Siddharth Arun,
4th Year Undergraduate student
Industrial Engineering and
2017 Nov 10
3
update R version in windows
However, trying this on Linux Mint gave
package ?installr? is not available (for R version 3.4.2)
Has the package not been updated yet?
JN
Try the installr package. It was designed for this purpose.
On Fri, Nov 10, 2017 at 11:49 AM, Bond, Stephen <Stephen.Bond at cibc.com> wrote:
> Is there a utility which will allow me to upgrade my R version and update all packages from the old
2018 Mar 22
2
how to add a child to a child in XML
Big thanks. newXMLNode works great. Wonder why it is not included in the documentation.
There is newXMLDoc and newXMLNamespace, but no mention of newXMLNode.
Stephen
From: Ben Tupper [mailto:btupper at bigelow.org]
Sent: Wednesday, March 21, 2018 6:18 PM
To: Bond, Stephen
Cc: r-help
Subject: Re: [R] how to add a child to a child in XML
Hi,
XML doesn't use the `$` to access child nodes.
2002 Nov 07
2
Qualitative factors
Hi,
I have some doubt about how qualitative factors are coded in R. For
instance, I consider a response y, a quantitative factor x and a qualitative
factor m at 3 levels, generated as follow :
y_c(6,4,2.3,5,3.5,4,1.,8.5,4.3,5.6,2.3,4.1,2.5,8.4,7.4)
x_c(3,1,3,1,2,1,4,5,1,3,4,2,5,4,3)
m_gl(3,5)
lm(y~x+m)
Coefficients:
(Intercept) x m2 m3
3.96364 0.09818
2018 Mar 22
0
how to add a child to a child in XML
Hi,
It's a reasonable question. The answer is that it actually is included, but there are many instances across packages where multiple functions are documented on a single help page. The following brings up such a page... (for XML_3.98-1.9)
> library(XML)
> ?newXMLNode
You can see the same on line...
https://www.rdocumentation.org/packages/XML/versions/3.98-1.9/topics/newXMLDoc
2013 Sep 09
1
windowing
Is there a package or a command that does window aggregation like
select
sum(col1) over
(partition by col2, col3 order by col4
rows between unbounded preceding and current row) as sum1
from table1 ;
the above is Netezza syntax, but Postgre has same capability.
Stephen B
[[alternative HTML version deleted]]
2018 Mar 22
1
how to add a child to a child in XML
Just to clarify and hopefully catch the attention of the maintainer:
The newXMLNode function is not mentioned in:
https://cran.r-project.org/web/packages/XML/XML.pdf
which supposedly describes all functions in the package.
Stephen
From: Ben Tupper [mailto:btupper at bigelow.org]
Sent: Thursday, March 22, 2018 10:40 AM
To: Bond, Stephen
Cc: r-help
Subject: Re: [R] how to add a child to a
2011 Jan 11
5
A question on dummy variable
Dear all, I would like to ask one question related to statistics, for
specifically on defining dummy variables. As of now, I have come across 3
different kind of dummy variables (assuming I am working with Seasonal
dummy, and number of season is 4):
> dummy1 <- diag(4)
> for(i in 1:3) dummy1 <- rbind(dummy1, diag(4))
> dummy1 <- dummy1[,-4]
>
> dummy2 <- dummy1
>
2017 Nov 10
0
update R version in windows
This issue does not exist on Linux. My Ubuntu updates both R and all packages.
Stephen B
-----Original Message-----
From: J C Nash [mailto:profjcnash at gmail.com]
Sent: Friday, November 10, 2017 1:19 PM
To: r-help; RICHARD M. HEIBERGER; Bond, Stephen
Subject: Re: [R] update R version in windows
However, trying this on Linux Mint gave
package ?installr? is not available (for R version
2004 Apr 25
1
ts's in lm()
Is this a bug?
seasonal.dummies <-
function(x, contr=NULL) {
# takes a time series and returns a matrix of seasonal dummies for
# x. This is almost cycle(x), we only have to make it into a factor
# and add suitable level names.
# return a matrix which includes a constant!
# level names here assumes frequency is 12!
cyc <- factor( cycle(x), labels=c("ene","feb",
2018 Mar 21
2
how to add a child to a child in XML
I am trying to add a child to a child using XML package in R. the following fails
library(XML)
node1 <- c("val1","val2","val3")
names(node1) <- c("att1","att2","att3")
root <- xmlNode("root", attrs=node1)
node2 <- LETTERS[1:3]
names(node2) <- paste("name",1:3,sep="")
root <-
2003 Nov 22
2
lm with ordered factors
Hi Folks,
No doubt a question with a well-known answer, but I'm unfortunately
not managing to find it readily ... !
I have a quantitative variable Y and a 4-level ordered factor A
(with very unequal numbers at the different levels, by the way).
The command
lm(Y ~ A)
returns (amongst other stuff) an intercept, and coefficients
A.L, A.Q and A.C for the Linear, Quadratic and Cubic effects.
2010 Jul 07
6
forcing a zero level in contr.sum
I need to use contr.sum and observe that some levels are not statistically different from the overall mean of zero.
What is the proper way of forcing the zero estimate? It seems the column corresponding to that level should become a column of zeros.
Is there a way to achieve that without me constructing the design matrix?
Thank you.
Stephen Bond
[[alternative HTML version deleted]]
2009 Apr 15
2
Double seasonal holt winter using R
Dear Members,
I have been searching for a package in R which can handle multiple seasonality suggested by taylor(2003).
It will be great help if anybody has used this on R before (i.e. which package).
Thanks in Advance.
Best Regards
Atul Malik
[[alternative HTML version deleted]]
2011 Nov 03
2
Create design matrix
Greetings useRs,
What is the easiest way to create a design matrix of several factor variables? Function gendata in Design seems to do that for a fitted model, but how to do that only on several factor vectors??
The result should be a df with one row for each distinct combination of levels of factors eg for (M,F) (Y,O)
We get
M Y
M O
F Y
F O
In reality I will have more than 1000 rows so doing