Estimate the mean of the independent variable (regression)Testing for a random walk with driftInterpreting...
Does an unused member variable take up memory?
How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?
PTIJ: Why does only a Shor Tam ask at the Seder, and not a Shor Mu'ad?
What is the population of Romulus in the TNG era?
Professor forcing me to attend a conference, I can't afford even with 50% funding
Outlet with 3 sets of wires
Doesn't allowing a user mode program to access kernel space memory and execute the IN and OUT instructions defeat the purpose of having CPU modes?
Shifting between bemols and diesis in the key signature
What do *foreign films* mean for an American?
Virginia employer terminated employee and wants signing bonus returned
Recommendation letter by significant other if you worked with them professionally?
Are small insurances worth it?
Are all players supposed to be able to see each others' character sheets?
Is it possible to find 2014 distinct positive integers whose sum is divisible by each of them?
Is it safe to abruptly remove Arduino power?
Signed and unsigned numbers
Is it possible to avoid unpacking when merging Association?
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
I can't die. Who am I?
Power Strip for Europe
Why couldn't the separatists legally leave the Republic?
What ability score modifier does a javelin's damage use?
In the late 1940’s to early 1950’s what technology was available that could melt ice?
How can I manipulate the output of Information?
Estimate the mean of the independent variable (regression)
Testing for a random walk with driftInterpreting high p value and low correlation valueMultiple regression - low F-statistics and multiple R-squared. What should i do/concludePrediction Interval from Markov ChainsDegrees of freedom of t-test in multiple regression .Finding range of p-values from linear regression modelLinear regression where the error is modifiedthe predicted value of Y , when $x=x_0$Finding $n$ given the margin of error $1$%Problem on the Interpretation of Specfic Regression Equation Variables
$begingroup$
If I have the simple linear model: $y=alpha+beta x+epsilon$, and I know that
$hat{alpha}= hat{overline{y}}-hat{beta}hat{overline{x}}$.
Then my estimate og the mean is actually: $hat{overline{x}}=frac{hat{overline{y}}-hat{alpha}}{hat{beta}}$
I'm trying to do this in R, with the lm(), but I don't know if this is correct.
Call:
lm(formula = ult ~ vale)
Residuals:
Min 1Q Median 3Q Max
-278701 -34922 -13235 21227 940124
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 4.834e+04 7.337e+02 65.89 <2e-16 ***
vale 2.307e-04 5.874e-06 39.27 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 64480 on 13065 degrees of freedom
Multiple R-squared: 0.1056, Adjusted R-squared: 0.1055
F-statistic: 1542 on 1 and 13065 DF, p-value: < 2.2e-16
statistics regression math-software
$endgroup$
add a comment |
$begingroup$
If I have the simple linear model: $y=alpha+beta x+epsilon$, and I know that
$hat{alpha}= hat{overline{y}}-hat{beta}hat{overline{x}}$.
Then my estimate og the mean is actually: $hat{overline{x}}=frac{hat{overline{y}}-hat{alpha}}{hat{beta}}$
I'm trying to do this in R, with the lm(), but I don't know if this is correct.
Call:
lm(formula = ult ~ vale)
Residuals:
Min 1Q Median 3Q Max
-278701 -34922 -13235 21227 940124
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 4.834e+04 7.337e+02 65.89 <2e-16 ***
vale 2.307e-04 5.874e-06 39.27 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 64480 on 13065 degrees of freedom
Multiple R-squared: 0.1056, Adjusted R-squared: 0.1055
F-statistic: 1542 on 1 and 13065 DF, p-value: < 2.2e-16
statistics regression math-software
$endgroup$
$begingroup$
The lm()-function seems correct for linear models.
$endgroup$
– callculus
2 days ago
$begingroup$
@callculus, I know but the question is with that summary how do i get the estimated mean of my independent variable.
$endgroup$
– Lexie Walker
2 days ago
$begingroup$
Try $texttt{mean(ult)}$. This command should work.
$endgroup$
– callculus
2 days ago
add a comment |
$begingroup$
If I have the simple linear model: $y=alpha+beta x+epsilon$, and I know that
$hat{alpha}= hat{overline{y}}-hat{beta}hat{overline{x}}$.
Then my estimate og the mean is actually: $hat{overline{x}}=frac{hat{overline{y}}-hat{alpha}}{hat{beta}}$
I'm trying to do this in R, with the lm(), but I don't know if this is correct.
Call:
lm(formula = ult ~ vale)
Residuals:
Min 1Q Median 3Q Max
-278701 -34922 -13235 21227 940124
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 4.834e+04 7.337e+02 65.89 <2e-16 ***
vale 2.307e-04 5.874e-06 39.27 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 64480 on 13065 degrees of freedom
Multiple R-squared: 0.1056, Adjusted R-squared: 0.1055
F-statistic: 1542 on 1 and 13065 DF, p-value: < 2.2e-16
statistics regression math-software
$endgroup$
If I have the simple linear model: $y=alpha+beta x+epsilon$, and I know that
$hat{alpha}= hat{overline{y}}-hat{beta}hat{overline{x}}$.
Then my estimate og the mean is actually: $hat{overline{x}}=frac{hat{overline{y}}-hat{alpha}}{hat{beta}}$
I'm trying to do this in R, with the lm(), but I don't know if this is correct.
Call:
lm(formula = ult ~ vale)
Residuals:
Min 1Q Median 3Q Max
-278701 -34922 -13235 21227 940124
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 4.834e+04 7.337e+02 65.89 <2e-16 ***
vale 2.307e-04 5.874e-06 39.27 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 64480 on 13065 degrees of freedom
Multiple R-squared: 0.1056, Adjusted R-squared: 0.1055
F-statistic: 1542 on 1 and 13065 DF, p-value: < 2.2e-16
statistics regression math-software
statistics regression math-software
edited 2 days ago
callculus
18.3k31427
18.3k31427
asked 2 days ago
Lexie WalkerLexie Walker
1597
1597
$begingroup$
The lm()-function seems correct for linear models.
$endgroup$
– callculus
2 days ago
$begingroup$
@callculus, I know but the question is with that summary how do i get the estimated mean of my independent variable.
$endgroup$
– Lexie Walker
2 days ago
$begingroup$
Try $texttt{mean(ult)}$. This command should work.
$endgroup$
– callculus
2 days ago
add a comment |
$begingroup$
The lm()-function seems correct for linear models.
$endgroup$
– callculus
2 days ago
$begingroup$
@callculus, I know but the question is with that summary how do i get the estimated mean of my independent variable.
$endgroup$
– Lexie Walker
2 days ago
$begingroup$
Try $texttt{mean(ult)}$. This command should work.
$endgroup$
– callculus
2 days ago
$begingroup$
The lm()-function seems correct for linear models.
$endgroup$
– callculus
2 days ago
$begingroup$
The lm()-function seems correct for linear models.
$endgroup$
– callculus
2 days ago
$begingroup$
@callculus, I know but the question is with that summary how do i get the estimated mean of my independent variable.
$endgroup$
– Lexie Walker
2 days ago
$begingroup$
@callculus, I know but the question is with that summary how do i get the estimated mean of my independent variable.
$endgroup$
– Lexie Walker
2 days ago
$begingroup$
Try $texttt{mean(ult)}$. This command should work.
$endgroup$
– callculus
2 days ago
$begingroup$
Try $texttt{mean(ult)}$. This command should work.
$endgroup$
– callculus
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
( mean(fitted(lm(formula = ult ~ vale))) - coef( lm(formula = ult ~ vale) )[1] ) / coef( lm(formula = ult ~ vale) )[2]
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3140292%2festimate-the-mean-of-the-independent-variable-regression%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
( mean(fitted(lm(formula = ult ~ vale))) - coef( lm(formula = ult ~ vale) )[1] ) / coef( lm(formula = ult ~ vale) )[2]
$endgroup$
add a comment |
$begingroup$
( mean(fitted(lm(formula = ult ~ vale))) - coef( lm(formula = ult ~ vale) )[1] ) / coef( lm(formula = ult ~ vale) )[2]
$endgroup$
add a comment |
$begingroup$
( mean(fitted(lm(formula = ult ~ vale))) - coef( lm(formula = ult ~ vale) )[1] ) / coef( lm(formula = ult ~ vale) )[2]
$endgroup$
( mean(fitted(lm(formula = ult ~ vale))) - coef( lm(formula = ult ~ vale) )[1] ) / coef( lm(formula = ult ~ vale) )[2]
answered 2 days ago
V. VancakV. Vancak
11.3k3926
11.3k3926
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3140292%2festimate-the-mean-of-the-independent-variable-regression%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
The lm()-function seems correct for linear models.
$endgroup$
– callculus
2 days ago
$begingroup$
@callculus, I know but the question is with that summary how do i get the estimated mean of my independent variable.
$endgroup$
– Lexie Walker
2 days ago
$begingroup$
Try $texttt{mean(ult)}$. This command should work.
$endgroup$
– callculus
2 days ago