Displaying 20 results from an estimated 20000 matches similar to: "Equation as a character string"
2013 Jul 01
1
Male and female signs as subscript in plot
Hello,
I'd like to add labels to my plot that include a male or female symbol as
subscript.
I'm working in Windows Vista and R 3.0.0.
I am able to add the male symbol to the plot as regular text (NOT as
subscript), e.g. with:
mtext("Male\u2642")
This displays the word "Male" followed by the male symbol on the plot.
But "\u2642" does not work when I try to
2012 Jul 09
1
Lavaan Package - How to Extract Residuals in Data Values
Hello R Community,
I am using the Lavaan package in R 2.15.0 to analyze data collected from
1200 lakes across North America. My dataset includes 3 continuous
independent variables (LOG_NTL, LOG_PTL, and LOG_SR_A_D) and 1 continuous
dependent variable (BIOVOL) . I have successfully constructed structural
equation models using the Lavaan package (example included below with
code), but I have not
2010 Aug 18
5
Linear regression equation and coefficient matrix
Hi,
I have 20*60 data matrix (with some NAs) and I wish to perfom a Pearson
correlation coefficient matrix as well as simple linear regression equation
and coefficient of determination (R2) for every possible combination. Any
tip/idea/library/script how do to so.
Thanks,
As hz
--
View this message in context:
2011 Mar 27
2
Structural equation modeling in R(lavaan,sem)
I am a new user of the function sem in package sem and lavaan for structural
equation modeling
1. I don?t know what is the difference between this function and CFA
function, I know that cfa for confirmatory analysis but I don?t know what
is the difference between confirmatory analysis and structural equation
modeling in the package lavaan.
2. I have data that I want to analyse but I have some
2013 Jan 27
1
Removing values containing a specific character
Awesome, thanks Arun, that's exactly what I was looking for!
On Sat, Jan 26, 2013 at 9:21 PM, arun kirshna [via R] <
ml-node+s789695n4656749h63@n4.nabble.com> wrote:
> Hi,
> Try this:
> df[]<-lapply(df,as.character)
> df2<-df
> df[,1][grep("@",df$names)]<- ""
> df
> #names emails
> #1 bob bobj@cup.com
> #2
2011 Apr 11
3
Coding matrix equation
Hi all,
I have two matrices:
G<-matrix(c(2.0, 0.5, 0.5, 0.5, 2.0, 0.5, 0.5, 0.5,2.0),3,3)
P<-matrix(c(1.0, 0.5, 0.5, 0.5, 1.0, 0.5, 0.5, 0.5,1.0),3,3)
and I want to run this equation to get a new matrix F:
F = [P+2G]^-1/2 P [P+2G]^-1/2
Could someone please tell me how to code this in R?
Many thanks in advance for your time.
Best wishes,
Matt
[[alternative HTML version deleted]]
2023 Apr 12
2
Split String in regex while Keeping Delimiter
I thought replacing the spaces following instances of +++,++,+,- with "\n" and then reading with scan should succeed. Like Ivan Krylov I was fairly sure that you meant the minus sign to be "-" rather than "?", but perhaps your were using MS Word as an editor which is inconsistent with effective use of R. If so, learn to use a proper programming editor, and in any case
2023 Apr 12
3
Split String in regex while Keeping Delimiter
Hello List,
?
I have a dataset consisting of strings that I want to split while saving the delimiter.
?
Some example data:
?leucocyten + gramnegatieve staven +++ grampositieve staven ++?
?leucocyten ? grampositieve coccen +?
?
I want to split the strings such that I get the following result:
c(?leucocyten +?, ??gramnegatieve staven +++?, ??grampositieve staven ++?)
c(?leucocyten ??, ?grampositieve
2012 Mar 22
1
Simalteneous Equation Doubt in R
Hi List
l am interested in developing price model. I have found a research paper
related to price model of corn in US market where it has taken demand &
supply forces into consideration. Following are the equation:
Supply equation:
St= a0+a1Pt-1+a2Rt-1+a3St-1+a5D1+a6D2+a7D3+U1 -(1)
Where D1,D2,D3=Quarterly Dummy Variables(Since quarterly data are
considered)
Here, Supply
2023 Apr 13
1
Split String in regex while Keeping Delimiter
Dear Emily,
Using a look-behind solves the split problem in this case. (Note: Using
Regex is in most/many cases the simplest solution.)
str = c("leucocyten + gramnegatieve staven +++ grampositieve staven ++",
"leucocyten ? grampositieve coccen +")
tokens = strsplit(str, "(?<=[-+])\\s++", perl=TRUE)
PROBLEM
The current expression does NOT work for a different
2012 Jan 07
2
glm or transformation of the response?
Hi Dr. Snow,
I am a graduate student working on analyzing data for my thesis and came
across your post on an R forum:
The default link function for the glm poisson family is a log link, which
means that it is fitting the model:
log(mu) ~ b0 + b1 * x
But the data that you generate is based on a linear link. Therefore your
glm analysis does not match with how the data was generated
2003 Apr 21
4
nonlinear equation solver?
Dear R-Help,
I am trying to use R to solve a nonlinear equation many times for different values. I am looking for a mathematical nonlinear equation solution which may not have a closed solution form. For example, I have equation:
2 = (t^2)/log(t)
What is t?
I am wondering how to solve it in R.
Many thanks,
Zhu Wang
Statistical Science Department
SMU.
2002 Jul 28
2
timestamp on symlink
rsync does not sync the timestamp on symlink (Solaris 8).
It is probablly due to the limitation of Unix implementation
of symlink, but I would like to know why rsync/Unix does not
do this, and what we can do about it. Is the conclusion that
"rsync syncs everything except the timestamp on symlink"?
Why do I need timestamp on symlink? Supposed something stopped
working because something
2010 Jan 21
1
Displaying Equation With Numerator and Demomenator On A Plot...
Is there a way to display something like the quadratic equation, i.e. with a numerator and demonator on a plot?
I think there is a way to create the equation in Latex, but wasn't sure if this format would translate to plotting.
\begin{equation}
? x = \frac{b +/- sqrt(b^2 - 4*a*c)}{2*a}
\end{equation}
?
My searched turned up the following:
2012 Jan 30
1
Problem in Fitting model equation in "nls" function
Dear R users,
I am struggling to fit expo-linear equation to my data using "nls" function. I am always getting error message as i highlighted below in yellow color:
### Theexpo-linear equation which i am interested to fit my data:
response_variable = (c/r)*log(1+exp(r*(Day-tt))), where "Day" is time-variable
## my response variable
rl <-
2009 Aug 13
3
Solutions of equation systems
Hello all!
Maybe it's a newbie question(in fact I _am_, a newbie), but I hope
you'll find the solution.
I have an equation system which has k equation and n variables (k<n).
I would like to obtain a description of the solutions (which can be the
equation of lines or a plane, or everything else) with the lesser degree
of freedom, obviously using R.
In other words, I would like to
2009 Nov 04
1
Fw: solving a linear equation
Sorry, I didn't mean a linear equation, of course this equation is not linear, I meant an equation in one unknown.
Hi all,
I've a linear equation of the form:
0.95=2 ( [3+ln(x/3)]^-13? + 4 [3+2ln(x/3)]^-13? + [3+4ln(x/3)]^-13 )
and I want to solve it for x, can I do this using R?
Thanks in advance.
Maram.
? ? ?
??? [[alternative HTML version deleted]]
-------------- next
2012 Nov 27
1
Effect of each term in the accuracy of Nonlinear multivariate regression fitting equation
Dear all,
I have a set of data with 4 inputs (independent variables) and one output
(dependent variable). I want to perform a regression analysis in order to
fit these data to a regression model, however due to the non-linearity of
the model I do not have a clue which equation to use. I am thinking of
starting with a very general equation including ^3 terms and interactions
between the variables
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
2009 Apr 13
2
equation help
Hi everyone, I am having a bit of trouble correctly structuring an
equation in R.
Here is the equation
Here is what I thought
for(i in 1:numItem)for(x in 1:numCat)
Ptheta[,i,x]<-(exp(-1.702*a[i]*(theta-b[i,x+1]))
My problem is that I am not sure how to get it to read the equation as
having two indexing points (i and x). Right now it is trying to read
it as a matrix, but